feat: add deployment health and backups
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-09 15:38:31 -04:00
parent f1fd007894
commit 38277b29ec
4 changed files with 81 additions and 1 deletions
+12 -1
View File
@@ -43,6 +43,11 @@ services:
condition: service_healthy
expose:
- "3000"
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:3000/health').then((response) => process.exit(response.ok ? 0 : 1)).catch(() => process.exit(1))"]
interval: 10s
timeout: 5s
retries: 5
worker:
build:
@@ -66,9 +71,15 @@ services:
dockerfile: Dockerfile.web
restart: unless-stopped
depends_on:
- api
api:
condition: service_healthy
ports:
- "${WEB_PORT:-8080}:80"
healthcheck:
test: ["CMD", "wget", "--spider", "--quiet", "http://127.0.0.1/health"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres-data: