avoid coolify host-port collisions by exposing app port internally
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# Optional API override. Leave empty to use same-origin internal API routes.
|
# Optional API override. Leave empty to use same-origin internal API routes.
|
||||||
NEXT_PUBLIC_API_URL=
|
NEXT_PUBLIC_API_URL=
|
||||||
|
|
||||||
|
# Local docker host port (used by docker-compose.override.yml)
|
||||||
APP_PORT=3000
|
APP_PORT=3000
|
||||||
|
|
||||||
# OpenClaw / ZeroClaw (OpenAI-compatible)
|
# OpenClaw / ZeroClaw (OpenAI-compatible)
|
||||||
|
|||||||
@@ -33,7 +33,8 @@ cp .env.example .env
|
|||||||
docker compose up --build -d
|
docker compose up --build -d
|
||||||
```
|
```
|
||||||
|
|
||||||
Default app URL: `http://localhost:3000` (override with `APP_PORT` in `.env`).
|
For local Docker, host port mapping comes from `docker-compose.override.yml` (default `http://localhost:3000`, configurable via `APP_PORT`).
|
||||||
|
For Coolify/remote Docker Compose, only container port `3000` is exposed internally (no fixed host port bind), avoiding host port collisions.
|
||||||
Runtime data persists in the `app_data` volume (`/app/data` in container).
|
Runtime data persists in the `app_data` volume (`/app/data` in container).
|
||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
|
|||||||
4
docker-compose.override.yml
Normal file
4
docker-compose.override.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
services:
|
||||||
|
app:
|
||||||
|
ports:
|
||||||
|
- '${APP_PORT:-3000}:3000'
|
||||||
@@ -22,8 +22,8 @@ services:
|
|||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
ports:
|
expose:
|
||||||
- '${APP_PORT:-3000}:3000'
|
- "3000"
|
||||||
volumes:
|
volumes:
|
||||||
- app_data:/app/data
|
- app_data:/app/data
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user