Preserva credenciais do Postgres no deploy

This commit is contained in:
tiago
2026-10-01 12:34:47 -03:00
parent 27f1e59e41
commit 8d764fb786
3 changed files with 43 additions and 6 deletions
+12 -2
View File
@@ -9,7 +9,10 @@ services:
- caddy_data:/data
- caddy_config:/config
depends_on:
- frontend
backend:
condition: service_healthy
frontend:
condition: service_started
postgres:
image: postgres:16
@@ -53,6 +56,12 @@ services:
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "timeout 5 bash -c '</dev/tcp/localhost/8082'"]
interval: 10s
timeout: 5s
retries: 12
start_period: 30s
frontend:
build:
@@ -62,7 +71,8 @@ services:
VITE_API_BASE_URL: ${API_URL:-/api}
restart: unless-stopped
depends_on:
- backend
backend:
condition: service_healthy
volumes:
postgres_data: