Make local compose host port overridable; record Coolify UUID in README
This commit is contained in:
parent
60f8399f85
commit
19b0c195a0
2 changed files with 7 additions and 3 deletions
|
|
@ -11,7 +11,9 @@ Currently a placeholder: the frontend calls `/api/hello` and prints the JSON.
|
||||||
docker compose up --build
|
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
|
runs with `--reload`, so edits to `main.py` or `static/` take effect without a
|
||||||
rebuild. Rebuild only when `requirements.txt` changes.
|
rebuild. Rebuild only when `requirements.txt` changes.
|
||||||
|
|
||||||
|
|
@ -55,5 +57,5 @@ Manual redeploy:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -X POST -H "Authorization: Bearer $(cat ~/.coolify-token)" \
|
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"
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,9 @@ services:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.dev
|
dockerfile: Dockerfile.dev
|
||||||
ports:
|
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:
|
volumes:
|
||||||
# Bind-mount the source so --reload picks up edits without a rebuild.
|
# Bind-mount the source so --reload picks up edits without a rebuild.
|
||||||
- .:/app
|
- .:/app
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue