From 439c1b41e603472c6494f59c770575d268a2e8de Mon Sep 17 00:00:00 2001 From: josh Date: Thu, 16 Apr 2026 21:31:30 -0400 Subject: [PATCH] deploy(compose): inline restart: unless-stopped per service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Drop the x-restart YAML anchor — three-char-longer per service isn't worth the indirection. --- docker-compose.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7cf5547..ea44ac7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,13 +17,10 @@ # in anticipation of the BullMQ worker follow-up; the API does not yet # depend on it. -x-restart: &restart - restart: unless-stopped - services: api: - <<: *restart image: gitea.thewrightserver.net/josh/vector-api:${TAG:-latest} + restart: unless-stopped environment: NODE_ENV: production PORT: 3001 @@ -43,8 +40,8 @@ services: condition: service_healthy web: - <<: *restart image: gitea.thewrightserver.net/josh/vector-web:${TAG:-latest} + restart: unless-stopped ports: - "${WEB_PORT:-8080}:80" depends_on: @@ -52,8 +49,8 @@ services: condition: service_healthy redis: - <<: *restart image: redis:7-alpine + restart: unless-stopped volumes: - vector-redisdata:/data healthcheck: