From 0db22bf6d458f3468dbfe62278ba811bf6a168ed Mon Sep 17 00:00:00 2001 From: Andres Date: Thu, 17 Sep 2026 17:44:27 -0400 Subject: [PATCH] Relax PocketBase env validation, increase healthcheck retries; set nginx server_name to korrith.com --- apps/web/nginx.conf | 2 +- docker-compose.yml | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/apps/web/nginx.conf b/apps/web/nginx.conf index 59396d5..6b91943 100644 --- a/apps/web/nginx.conf +++ b/apps/web/nginx.conf @@ -6,7 +6,7 @@ server { listen 80; - server_name _; + server_name korrith.com; root /usr/share/nginx/html; index index.html; diff --git a/docker-compose.yml b/docker-compose.yml index d64ece6..56eddf6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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