Panel-friendly deploy: compose at the root, settings via env vars #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/compose-at-root"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Makes OweMe deploy cleanly through the panel, with every setting changeable from the panel's Environment tab.
Changes
compose.yamland.env.examplemove to the repo root. The panel only looks for a compose file there.env_file. Every setting is written incompose.yamlas${VAR:-default}with a comment, so the app runs with zero configuration and any setting can be set from the panel (or from.envwhen running standalone).standaloneprofile, because the panel's own Caddy routes the domain toapp:8080and serves HTTPS.vapid.json, mode 600). The push contact defaults tohttps://<site domain>.gen-vapid.tsis removed, andPUSH_DISABLED=1turns push off..containerignorekeepsnode_modules, data and.envout of the build context.deploy/README.mdnow 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.yamlpasses every setting to the app on its own.Verification
panelctldoes it:-p <app> -f compose.yaml -f .panel-ports.yaml, with env vars set in compose's environment.appruns, on127.0.0.1:8484.MAX_PHOTO_BYTES=3000000reaches/api/config.--force-recreate.--profile standalonebrings 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
- 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_013FYo6JSV1fDU1fm3LU77iFMove compose.yaml to the repo rootto Panel-friendly deploy: compose at the root, settings via env vars