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
|
# 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:
|
||||||
|
|||||||
Reference in New Issue
Block a user