Move compose.yaml and .env.example to the repo root

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
This commit is contained in:
agent 2026-10-09 20:45:28 +00:00
parent 41b3487a5a
commit 1382e53359
9 changed files with 31 additions and 21 deletions

View file

@ -1,4 +1,4 @@
// All configuration comes from environment variables (see deploy/.env.example).
// All configuration comes from environment variables (see .env.example).
import { resolve } from 'node:path';
function int(env: NodeJS.ProcessEnv, name: string, def: number): number {

View file

@ -1,5 +1,5 @@
// Generate VAPID keys and write them into an env file without printing the
// private key: `node apps/server/src/gen-vapid.ts deploy/.env`.
// private key: `node apps/server/src/gen-vapid.ts .env`.
// Existing VAPID_PUBLIC_KEY / VAPID_PRIVATE_KEY lines are kept unless
// --force is given (rotating keys invalidates every push subscription).
import { chmodSync, existsSync, readFileSync, writeFileSync } from 'node:fs';