deploy(compose): inline restart: unless-stopped per service
CI / Lint · Typecheck · Test · Build (push) Successful in 51s
CI / Playwright (smoke) (push) Has been skipped
CI / Build & push images (push) Successful in 5m47s

Drop the x-restart YAML anchor — three-char-longer per service isn't
worth the indirection.
This commit is contained in:
2026-04-16 21:31:30 -04:00
parent fcd4aa6542
commit 439c1b41e6
+3 -6
View File
@@ -17,13 +17,10 @@
# in anticipation of the BullMQ worker follow-up; the API does not yet # in anticipation of the BullMQ worker follow-up; the API does not yet
# depend on it. # depend on it.
x-restart: &restart
restart: unless-stopped
services: services:
api: api:
<<: *restart
image: gitea.thewrightserver.net/josh/vector-api:${TAG:-latest} image: gitea.thewrightserver.net/josh/vector-api:${TAG:-latest}
restart: unless-stopped
environment: environment:
NODE_ENV: production NODE_ENV: production
PORT: 3001 PORT: 3001
@@ -43,8 +40,8 @@ services:
condition: service_healthy condition: service_healthy
web: web:
<<: *restart
image: gitea.thewrightserver.net/josh/vector-web:${TAG:-latest} image: gitea.thewrightserver.net/josh/vector-web:${TAG:-latest}
restart: unless-stopped
ports: ports:
- "${WEB_PORT:-8080}:80" - "${WEB_PORT:-8080}:80"
depends_on: depends_on:
@@ -52,8 +49,8 @@ services:
condition: service_healthy condition: service_healthy
redis: redis:
<<: *restart
image: redis:7-alpine image: redis:7-alpine
restart: unless-stopped
volumes: volumes:
- vector-redisdata:/data - vector-redisdata:/data
healthcheck: healthcheck: