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
|
|
@ -1,7 +1,7 @@
|
|||
# Deploying OweMe
|
||||
|
||||
`compose.yaml` (repo root) runs the **app** container: the Node server plus
|
||||
the built web client, listening on port 8080, with its data in the
|
||||
the built web client, listening on port 8080 (or `PORT`), with its data in the
|
||||
`oweme-data` volume. It needs **no configuration**: push keys are generated
|
||||
on first start and kept in the volume. Every setting is an optional
|
||||
environment variable, listed with its default in `compose.yaml`.
|
||||
|
|
@ -13,7 +13,8 @@ container enabled with the `standalone` profile.
|
|||
|
||||
1. **New app → Git repository**: this repo, branch `main`. The panel finds
|
||||
`compose.yaml` in the repository root.
|
||||
2. **Domain**: point it at service **`app`**, port **`8080`**. The panel
|
||||
2. **Domain**: point it at service **`app`**, port **`8080`** (or the
|
||||
`PORT` you set in the Environment tab). The panel
|
||||
publishes the port on 127.0.0.1 and its Caddy serves HTTPS.
|
||||
3. **Environment** (optional): any variable from `compose.yaml`, for example
|
||||
`MAX_PHOTO_BYTES=5242880` or `VAPID_SUBJECT=mailto:you@example.com`.
|
||||
|
|
@ -72,6 +73,7 @@ standalone deploy.
|
|||
| `VAPID_SUBJECT` | `https://<site domain>` | Contact sent to push services |
|
||||
| `VAPID_PUBLIC_KEY` / `VAPID_PRIVATE_KEY` | generated | Pin push keys (set both); otherwise kept in the volume as `vapid.json` |
|
||||
| `PUSH_DISABLED` | `0` | `1` turns push notifications off |
|
||||
| `PORT` | `8080` | Port the app listens on inside the container (the panel's domain must target it) |
|
||||
| `DOMAIN` | `localhost` | Standalone only: Caddy's site address and certificate |
|
||||
| `BIND_ADDR` | `0.0.0.0` | Standalone only: address Caddy's ports are published on |
|
||||
| `HTTP_PORT` / `HTTPS_PORT` | `80` / `443` | Standalone only: host ports for Caddy |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue