fix(caddy): gebruik Docker servicenaam ipv host-IP in Caddyfile
Vervang `reverse_proxy 172.18.0.1:3001` door `reverse_proxy ops-dashboard:3000` zodat de reverse-proxy stabiel werkt via Docker service-name resolution. Voeg comments toe als pre-conditie: Caddy moet op hetzelfde Docker-netwerk zitten. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e5423de319
commit
2b11b999c0
1 changed files with 4 additions and 1 deletions
|
|
@ -1,7 +1,10 @@
|
||||||
# Block to add to /srv/scrum4me/caddy/Caddyfile
|
# Block to add to /srv/scrum4me/caddy/Caddyfile
|
||||||
# After adding, restart Caddy (not reload — see deploy notes):
|
# After adding, restart Caddy (not reload — see deploy notes):
|
||||||
# docker compose restart caddy
|
# docker compose restart caddy
|
||||||
|
# Pre-condition: the Caddy container must share the Docker network of the ops-dashboard compose stack
|
||||||
|
# so that Docker service-name resolution works.
|
||||||
|
|
||||||
ops.jp-visser.nl {
|
ops.jp-visser.nl {
|
||||||
reverse_proxy 172.18.0.1:3001
|
# Use Docker service-name; Caddy must share a network with ops-dashboard.
|
||||||
|
reverse_proxy ops-dashboard:3000
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue