Pin container names in QA compose to match Caddy's upstream hostnames
Caddy reverse-proxies to novelly-web/novelly-api by DNS name, but compose only registered aliases web/api (service names) plus novelly-web-1/-api-1 (container-number suffixed). Any Caddy restart re-resolves DNS and 502s until the alias exists again. Pin container_name so the alias is stable across every redeploy.
This commit is contained in:
@@ -8,6 +8,7 @@ services:
|
|||||||
|
|
||||||
api:
|
api:
|
||||||
image: ${API_IMAGE}:latest
|
image: ${API_IMAGE}:latest
|
||||||
|
container_name: novelly-api
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
ConnectionStrings__Novel: "Data Source=/data/novel.db"
|
ConnectionStrings__Novel: "Data Source=/data/novel.db"
|
||||||
@@ -29,6 +30,7 @@ services:
|
|||||||
|
|
||||||
web:
|
web:
|
||||||
image: ${WEB_IMAGE}:latest
|
image: ${WEB_IMAGE}:latest
|
||||||
|
container_name: novelly-web
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
api:
|
api:
|
||||||
|
|||||||
Reference in New Issue
Block a user