diff --git a/docker-compose.coolify.yml b/docker-compose.coolify.yml index 35aede2..221e578 100644 --- a/docker-compose.coolify.yml +++ b/docker-compose.coolify.yml @@ -37,18 +37,6 @@ services: expose: - "12001" - nginx: - image: nginx:alpine - volumes: - - ./nginx/docker-compose.conf:/etc/nginx/conf.d/default.conf:ro - depends_on: - - backend - - frontend - networks: - - app-network - expose: - - "80" - networks: app-network: driver: bridge diff --git a/docs/deployment/coolify.md b/docs/deployment/coolify.md index c1412b5..277a228 100644 --- a/docs/deployment/coolify.md +++ b/docs/deployment/coolify.md @@ -57,7 +57,7 @@ Use Coolify's **Docker Compose** resource with the dedicated compose file `docke 3. Select the `ai.allucanget.biz` repository and `main` branch 4. Set **Compose File** to `docker-compose.coolify.yml` 5. Set **Base Directory** to `/` -6. Select the `nginx` service as the public-facing service on port `80` +6. Select the `frontend` service as the public-facing service on port `12001` 7. Click **Create Resource** ### Step 2: Configure Environment Variables @@ -76,11 +76,11 @@ Add these in Coolify before first deploy: ### Step 3: Configure Domain and Proxy -1. Attach domain `ai.allucanget.biz` to `nginx` service +1. Attach domain `ai.allucanget.biz` to the `frontend` service on port `12001` 2. Enable **Auto HTTPS** in Coolify -3. Let Coolify terminate TLS and forward traffic to `nginx:80` +3. Coolify terminates TLS and forwards traffic directly to `frontend:12001` -`docker-compose.coolify.yml` does not publish host ports `80/443`. This avoids conflicts with Coolify's own proxy while keeping backend and frontend reachable over internal Docker network. +No nginx service is needed in the Coolify stack. The frontend Flask app proxies `/api/*` calls to `http://backend:12000` internally. Coolify's own reverse proxy handles external TLS termination. ### Step 4: Persistent Storage @@ -222,8 +222,8 @@ If you want to persist DuckDB data: ### Docker Compose deployment fails in Coolify - Verify Coolify uses `docker-compose.coolify.yml`, not local `docker-compose.yml` -- Verify public domain points to `nginx` service on port `80` -- Do not publish host ports `80:80` or `443:443` inside Coolify stack +- Verify public domain points to `frontend` service on port `12001` +- Do not add `nginx` to the Coolify stack — bind-mounting a local config file will fail since the file doesn't exist on the Coolify server ### Backend healthcheck stays unhealthy @@ -272,7 +272,7 @@ All required environment variables: - [ ] Repository pushed to Git - [ ] For Docker Compose: Coolify resource uses `docker-compose.coolify.yml` -- [ ] For Docker Compose: domain points to `nginx` service on port `80` +- [ ] For Docker Compose: domain points to `frontend` service on port `12001` - [ ] Backend service created with correct base directory (`/backend`) - [ ] Backend environment variables configured - [ ] Frontend service created with correct base directory (`/frontend`)