Pin container names in QA compose to match Caddy's upstream hostnames
CI / build-and-push (push) Successful in 53s
CI / deploy (push) Successful in 9s

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:
James Wampler
2026-08-20 17:32:30 -07:00
parent aca26588f9
commit 13fa29e8e9
+2
View File
@@ -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: