From 13fa29e8e95236d9b9c02e94cf2ecc11ad6a0580 Mon Sep 17 00:00:00 2001 From: James Wampler Date: Thu, 20 Aug 2026 17:32:30 -0700 Subject: [PATCH] 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. --- deploy/qa/docker-compose.qa.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/qa/docker-compose.qa.yml b/deploy/qa/docker-compose.qa.yml index ede144a..321d2fb 100644 --- a/deploy/qa/docker-compose.qa.yml +++ b/deploy/qa/docker-compose.qa.yml @@ -8,6 +8,7 @@ services: api: image: ${API_IMAGE}:latest + container_name: novelly-api restart: unless-stopped environment: ConnectionStrings__Novel: "Data Source=/data/novel.db" @@ -29,6 +30,7 @@ services: web: image: ${WEB_IMAGE}:latest + container_name: novelly-web restart: unless-stopped depends_on: api: