deploy(compose): inline restart: unless-stopped per service
Drop the x-restart YAML anchor — three-char-longer per service isn't worth the indirection.
This commit is contained in:
+3
-6
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user