Relax PocketBase env validation, increase healthcheck retries; set nginx server_name to korrith.com
This commit is contained in:
+12
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user