diff --git a/README.md b/README.md index ec5a44d..09c7e1c 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,9 @@ Currently a placeholder: the frontend calls `/api/hello` and prints the JSON. docker compose up --build ``` -Then open . The source tree is bind-mounted and uvicorn +Then open . 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" ``` diff --git a/docker-compose.yml b/docker-compose.yml index c3e4fb9..f97cb6f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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