Relax PocketBase env validation, increase healthcheck retries; set nginx server_name to korrith.com

This commit is contained in:
Andres
2026-09-17 17:44:27 -04:00
parent 252152b9fa
commit 0db22bf6d4
2 changed files with 13 additions and 7 deletions
+12 -6
View File
@@ -13,17 +13,17 @@ services:
context: ./apps/pocketbase
restart: unless-stopped
environment:
PB_ENCRYPTION_KEY: ${PB_ENCRYPTION_KEY:?Set PB_ENCRYPTION_KEY (32+ random chars)}
PB_SUPERUSER_EMAIL: ${PB_SUPERUSER_EMAIL:?Set the initial PocketBase admin email}
PB_SUPERUSER_PASSWORD: ${PB_SUPERUSER_PASSWORD:?Set the initial PocketBase admin password}
PB_ENCRYPTION_KEY: ${PB_ENCRYPTION_KEY:-change-me-32-plus-random-chars}
PB_SUPERUSER_EMAIL: ${PB_SUPERUSER_EMAIL:-admin@example.com}
PB_SUPERUSER_PASSWORD: ${PB_SUPERUSER_PASSWORD:-change-me-strong-password}
volumes:
- pocketbase-data:/pb_data
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8090/api/health"]
interval: 10s
timeout: 5s
retries: 12
start_period: 10s
retries: 20
start_period: 30s
api:
build:
@@ -46,7 +46,13 @@ services:
pocketbase:
condition: service_healthy
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://localhost:3001/health-check').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
test:
[
"CMD",
"node",
"-e",
"fetch('http://localhost:3001/health-check').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
]
interval: 15s
timeout: 5s
retries: 10