feat: add restart: always to all Docker services

Docker will auto-restart all containers when Docker Desktop starts.
Combined with Docker Desktop's "start on login" setting, this ensures
all services survive macOS reboots without custom LaunchDaemons.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hailin 2026-04-05 05:10:03 -07:00
parent dc6ac54c86
commit 278e53344f
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,7 @@
services: services:
postgres: postgres:
image: postgres:16-alpine image: postgres:16-alpine
restart: always
environment: environment:
POSTGRES_USER: dataviz POSTGRES_USER: dataviz
POSTGRES_PASSWORD: dataviz_local POSTGRES_PASSWORD: dataviz_local
@ -19,6 +20,7 @@ services:
context: . context: .
dockerfile: services/data-service/Dockerfile dockerfile: services/data-service/Dockerfile
network: host network: host
restart: always
ports: ports:
- "8001:8000" - "8001:8000"
environment: environment:
@ -32,6 +34,7 @@ services:
context: . context: .
dockerfile: services/chart-service/Dockerfile dockerfile: services/chart-service/Dockerfile
network: host network: host
restart: always
ports: ports:
- "8002:8000" - "8002:8000"
environment: environment:
@ -48,6 +51,7 @@ services:
context: . context: .
dockerfile: services/template-service/Dockerfile dockerfile: services/template-service/Dockerfile
network: host network: host
restart: always
ports: ports:
- "8003:8000" - "8003:8000"
environment: environment:
@ -61,6 +65,7 @@ services:
context: . context: .
dockerfile: services/export-service/Dockerfile dockerfile: services/export-service/Dockerfile
network: host network: host
restart: always
ports: ports:
- "8004:8000" - "8004:8000"
environment: environment: