Make local compose host port overridable; record Coolify UUID in README

This commit is contained in:
Chris Amow 2026-08-09 23:38:33 +00:00
parent 60f8399f85
commit 19b0c195a0
2 changed files with 7 additions and 3 deletions

View file

@ -11,7 +11,9 @@ Currently a placeholder: the frontend calls `/api/hello` and prints the JSON.
docker compose up --build
```
Then open <http://localhost:8000>. The source tree is bind-mounted and uvicorn
Then open <http://localhost:8000>. Override the host port with
`PORT=8010 docker compose up` if 8000 is busy — on the VPS itself it always is,
that's the Coolify UI. The source tree is bind-mounted and uvicorn
runs with `--reload`, so edits to `main.py` or `static/` take effect without a
rebuild. Rebuild only when `requirements.txt` changes.
@ -55,5 +57,5 @@ Manual redeploy:
```bash
curl -X POST -H "Authorization: Bearer $(cat ~/.coolify-token)" \
"http://127.0.0.1:8000/api/v1/deploy?uuid=$COOLIFY_UUID&force=true"
"http://127.0.0.1:8000/api/v1/deploy?uuid=dgvch0xqv8uvjfor7dl8bwl9&force=true"
```

View file

@ -6,7 +6,9 @@ services:
context: .
dockerfile: Dockerfile.dev
ports:
- "8000:8000"
# Host port is overridable: `PORT=8010 docker compose up`. On the VPS
# itself 8000 is already taken by the Coolify UI.
- "${PORT:-8000}:8000"
volumes:
# Bind-mount the source so --reload picks up edits without a rebuild.
- .:/app