Make the app's port configurable with PORT (default 8080)
compose.yaml passes ${PORT:-8080} to the app, its healthcheck and the
standalone Caddy (APP_PORT in the Caddyfile). Docs note that the panel's
domain must target the same port.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
This commit is contained in:
parent
9cd4c82118
commit
0217d62bf0
5 changed files with 18 additions and 10 deletions
6
SPEC.md
6
SPEC.md
|
|
@ -506,7 +506,7 @@ e2e/ Playwright tests
|
|||
## 13. Deployment (podman compose, with or without the panel)
|
||||
|
||||
`compose.yaml` (repo root) runs the `app` service: the Node server, which
|
||||
also serves the built static client, on port 8080 with its data in the
|
||||
also serves the built static client, on port 8080 (`PORT`) with its data in the
|
||||
`oweme-data` volume. It works with **zero configuration**: VAPID keys are
|
||||
generated on first start and stored in the volume (`vapid.json`, mode 600),
|
||||
and the push contact defaults to `https://<site domain>`.
|
||||
|
|
@ -514,11 +514,11 @@ and the push contact defaults to `https://<site domain>`.
|
|||
Every setting is an optional environment variable, written in `compose.yaml`
|
||||
as `${VAR:-default}` so it is visible and documented in one place:
|
||||
`MAX_PHOTO_BYTES`, `MAX_EVENT_BYTES`, `MAX_GROUP_BYTES`,
|
||||
`GROUP_CREATE_PER_HOUR`, `VAPID_SUBJECT`, `VAPID_PUBLIC_KEY` /
|
||||
`GROUP_CREATE_PER_HOUR`, `PORT`, `VAPID_SUBJECT`, `VAPID_PUBLIC_KEY` /
|
||||
`VAPID_PRIVATE_KEY` (pin keys), `PUSH_DISABLED`.
|
||||
|
||||
- **With the panel** (the main target): the panel clones the repo, finds
|
||||
`compose.yaml` at the root, routes the app's domain to `app:8080` through
|
||||
`compose.yaml` at the root, routes the app's domain to `app:$PORT` through
|
||||
its own Caddy (HTTPS) and passes the Environment tab's variables to
|
||||
compose for `${VAR}` interpolation. "Pass to every container" must stay
|
||||
off until the panel's injection override stops clashing with variables the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue