From ecbc48815ded99a052ef057e69427c823cd34ece Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 5 Sep 2025 14:31:02 +0200 Subject: [PATCH] docs(compose): fix backend healthcheck path; remove frontend VITE_API_URL env and document /api proxy (refs #18) --- docker-compose.production.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docker-compose.production.yml b/docker-compose.production.yml index 1d34514..49539a4 100644 --- a/docker-compose.production.yml +++ b/docker-compose.production.yml @@ -59,7 +59,8 @@ services: condition: service_healthy restart: unless-stopped healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"] + # Backend exposes /health on internal port 3000 + test: ["CMD", "curl", "-f", "http://localhost:3000/health"] interval: 30s timeout: 10s retries: 3 @@ -68,8 +69,8 @@ services: # Use pre-built image from GitHub Container Registry image: ghcr.io/the-luap/picpeak/frontend:latest container_name: picpeak-frontend - environment: - - VITE_API_URL=${FRONTEND_API_URL:-http://localhost:3001} + # Note: Pre-built frontend uses Nginx to proxy /api to backend:3001. + # Prefer keeping API base as '/api' in builds to avoid CORS. ports: - "${FRONTEND_PORT:-3000}:80" networks: @@ -110,4 +111,4 @@ volumes: networks: picpeak-network: - driver: bridge \ No newline at end of file + driver: bridge