Panel-friendly deploy: compose at the root, settings via env vars #3

Merged
reudy merged 2 commits from chore/compose-at-root into main 2026-10-10 00:45:46 +02:00
Member

Makes OweMe deploy cleanly through the panel, with every setting changeable from the panel's Environment tab.

Changes

  • compose.yaml and .env.example move to the repo root. The panel only looks for a compose file there.
  • No env_file. Every setting is written in compose.yaml as ${VAR:-default} with a comment, so the app runs with zero configuration and any setting can be set from the panel (or from .env when running standalone).
  • Only the app runs by default. The bundled Caddy moved to a standalone profile, because the panel's own Caddy routes the domain to app:8080 and serves HTTPS.
  • Push works without setup. VAPID keys are generated on first start and stored in the data volume (vapid.json, mode 600). The push contact defaults to https://<site domain>. gen-vapid.ts is removed, and PUSH_DISABLED=1 turns push off.
  • New .containerignore keeps node_modules, data and .env out of the build context.
  • Docs: deploy/README.md now has "With the panel" and "Standalone" sections and a settings table; SPEC §13 and AGENTS updated.

Known panel issue

The panel's Pass to every container setting writes bare keys (- MAX_PHOTO_BYTES). podman-compose 1.5 can't merge those with a variable the compose file also sets: can't merge value of [MAX_PHOTO_BYTES] of type str and NoneType. Until the panel is fixed (separate PR in reudy-net/panel), untick that box for OweMe; compose.yaml passes every setting to the app on its own.

Verification

  • Simulated panel deploy, run the way panelctl does it: -p <app> -f compose.yaml -f .panel-ports.yaml, with env vars set in compose's environment.
    • Only app runs, on 127.0.0.1:8484.
    • MAX_PHOTO_BYTES=3000000 reaches /api/config.
    • Push keys are generated with mode 600 and reused after --force-recreate.
    • e2e 2/2 pass against it, including push.
  • Standalone: --profile standalone brings up app + Caddy, and HTTPS health works.
  • npm test: 25 core and 13 server tests pass, including new VAPID tests. npm run check: 0 errors, 0 warnings.

🤖 Generated with Claude Code

https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF

Makes OweMe deploy cleanly through the panel, with every setting changeable from the panel's **Environment** tab. ## Changes - **`compose.yaml` and `.env.example` move to the repo root.** The panel only looks for a compose file there. - **No `env_file`.** Every setting is written in `compose.yaml` as `${VAR:-default}` with a comment, so the app runs with zero configuration and any setting can be set from the panel (or from `.env` when running standalone). - **Only the app runs by default.** The bundled Caddy moved to a `standalone` profile, because the panel's own Caddy routes the domain to `app:8080` and serves HTTPS. - **Push works without setup.** VAPID keys are generated on first start and stored in the data volume (`vapid.json`, mode 600). The push contact defaults to `https://<site domain>`. `gen-vapid.ts` is removed, and `PUSH_DISABLED=1` turns push off. - New `.containerignore` keeps `node_modules`, data and `.env` out of the build context. - Docs: `deploy/README.md` now has "With the panel" and "Standalone" sections and a settings table; SPEC §13 and AGENTS updated. ## Known panel issue The panel's **Pass to every container** setting writes bare keys (`- MAX_PHOTO_BYTES`). podman-compose 1.5 can't merge those with a variable the compose file also sets: `can't merge value of [MAX_PHOTO_BYTES] of type str and NoneType`. Until the panel is fixed (separate PR in reudy-net/panel), untick that box for OweMe; `compose.yaml` passes every setting to the app on its own. ## Verification - **Simulated panel deploy**, run the way `panelctl` does it: `-p <app> -f compose.yaml -f .panel-ports.yaml`, with env vars set in compose's environment. - Only `app` runs, on `127.0.0.1:8484`. - `MAX_PHOTO_BYTES=3000000` reaches `/api/config`. - Push keys are generated with mode 600 and reused after `--force-recreate`. - e2e 2/2 pass against it, including push. - **Standalone**: `--profile standalone` brings up app + Caddy, and HTTPS health works. - `npm test`: 25 core and 13 server tests pass, including new VAPID tests. `npm run check`: 0 errors, 0 warnings. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
agent added 1 commit 2026-10-09 22:45:38 +02:00
Deploy is now `podman compose up -d` from the root. Add .containerignore
so node_modules, local data and .env stay out of the build context, and
mount only .env (not the whole tree) when generating VAPID keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
agent added 1 commit 2026-10-10 00:24:25 +02:00
- compose.yaml runs only the app by default; Caddy moved to the
  'standalone' profile (the panel brings its own Caddy and routes).
- No env_file: every setting is ${VAR:-default} in compose.yaml, so it
  can be set from the panel's Environment tab (or .env standalone).
- VAPID keys are generated on first start and kept in the data volume;
  the push subject defaults to https://<site domain>. gen-vapid.ts removed.
- PUSH_DISABLED=1 turns push off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
agent changed title from Move compose.yaml to the repo root to Panel-friendly deploy: compose at the root, settings via env vars 2026-10-10 00:24:41 +02:00
reudy merged commit 9cd4c82118 into main 2026-10-10 00:45:46 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/oweme#3
No description provided.