diff --git a/compose.deploy.yml b/compose.deploy.yml index c5bd8fb..3aa9050 100644 --- a/compose.deploy.yml +++ b/compose.deploy.yml @@ -39,8 +39,7 @@ services: # mount, pin STEWARD_SECRET_KEY (env or a docker secret) instead, so the key # never depends on filesystem ownership being correct on every node. depends_on: - db: - condition: service_healthy + - db restart: unless-stopped db: @@ -54,11 +53,9 @@ services: volumes: - pgdata:/var/lib/postgresql/data # No host port published — db is reachable only on the backend network. - healthcheck: - test: ["CMD-SHELL", "pg_isready -U steward"] - interval: 5s - timeout: 5s - retries: 5 + # No healthcheck: a slow disk (NFS) failed pg_isready and the orchestrator + # killed a healthy database mid-write (#5275). Steward waits for the + # database itself, at startup and per request (steward/database.py). restart: unless-stopped networks: diff --git a/docker-compose.yml b/docker-compose.yml index 9f7cf81..4a3c6ea 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,8 +27,7 @@ services: - STEWARD_SECRET_KEY=dev-secret-key-change-me - PYTHONPATH=/app depends_on: - db: - condition: service_healthy + - db restart: unless-stopped db: @@ -42,11 +41,9 @@ services: - "5432:5432" volumes: - pgdata:/var/lib/postgresql/data - healthcheck: - test: ["CMD-SHELL", "pg_isready -U steward"] - interval: 5s - timeout: 5s - retries: 5 + # No healthcheck: a slow disk (NFS) failed pg_isready and the orchestrator + # killed a healthy database mid-write (#5275). Steward waits for the + # database itself, at startup and per request (steward/database.py). restart: unless-stopped volumes: