# ============================================================================= # .env.dev — COMMITTED settings for the local dev stack. EVERY VALUE IS A DUMMY. # # Use it by copying it over the gitignored .env, then starting the dev stack: # cp .env.dev .env # docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build # It has to BE .env, not be passed with --env-file: several services declare # `env_file: ./.env`, which compose reads regardless (see check-compose in the # Makefile). # # Nothing here is secret and nothing here may ever be used in production: the # passwords and signing keys only guard containers on your own machine, and # every third-party credential is fake, so those integrations fail at the # provider instead of reaching a real account. The background jobs that would # act on real accounts are switched off as well. # # Keep it in step with .env.example: a new variable goes in both. Settings that # are not secrets (hosts, ports, timezone) keep .env.example's defaults; values # a service parses (the S3 key id and secret) are dummies in the exact shape it requires, or that service won't start. # # The dummy Postgres credentials only work on a database volume created with # them: an existing dbdata volume keeps whatever password it was initialised # with. Only POSTGRES_DB is created on a fresh volume; the tracker database # and role still have to be created by hand (.env.example). # ============================================================================= # --- Postgres ---------------------------------------------------------------- POSTGRES_USER=dev POSTGRES_PASSWORD=dev-postgres-password POSTGRES_DB=site POSTGRES_PORT=5432 POSTGRES_HOST=db POSTGRES_TRACKER_DB=tracker POSTGRES_TRACKER_USER=tracker POSTGRES_TRACKER_PASSWORD=dev-tracker-password # --- Gitea ------------------------------------------------------------------- # Dev has no Gitea: GITEA_HOST is pinned to a TEST-NET address that never # answers, so the home page's git feed is empty (and /gitea/ redirects to # git.localhost, which goes nowhere). GITEA_HOST=git.localhost GITEA_PORT=3000 GITEA_UPSTREAM=192.0.2.1 # --- Gitea Actions runner ---------------------------------------------------- # The runner is not part of the compose stack; nothing in dev reads these. GITEA_RUNNER_HOST= GITEA_RUNNER_NAME=dev-runner GITEA_RUNNER_REGISTRATION_TOKEN=dev-dummy-runner-token # --- SilverBullet (notes) --------------------------------------------------- SILVERBULLET_PORT=3000 SILVERBULLET_PUBLIC_HOST=silverbullet-public SILVERBULLET_PUBLIC_PORT=3000 SILVERBULLET_GIT_INTERVAL=300 # --- Go backend -------------------------------------------------------------- # Must be at least 32 bytes or the backend refuses to start. BACKEND_PORT=8080 BACKEND_HOST=backend BACKEND_SECRET=dev-only-jwt-signing-secret-not-for-production BACKEND_ENDPOINT=/api # --- Obsidian vault ---------------------------------------------------------- # A checked-in, mostly-gitignored folder, so the bind mount always has a # source owned by you; a missing path would be created by Docker as root and # SilverBullet (uid 1000) could not write to it. It is not a git repository, # so silverbullet-git logs that and idles instead of pushing anywhere. OBSIDIAN_DIR=./dev/notes # --- Spotify ----------------------------------------------------------------- # docker-compose.dev.yml overrides the redirect URI. SPOTIFY_CLIENT_ID=dev-dummy-spotify-client-id SPOTIFY_CLIENT_SECRET=dev-dummy-spotify-client-secret SPOTIFY_REDIRECT_URI= SPOTIFY_AUTH_STATE=dev-dummy-spotify-state # --- Icecast / liquidsoap radio ---------------------------------------------- ICECAST_SOURCE_PASSWORD=dev-icecast-source-password ICECAST_RELAY_PASSWORD=dev-icecast-relay-password ICECAST_ADMIN_USER=admin ICECAST_ADMIN_PASSWORD=dev-icecast-admin-password ICECAST_HOST=icecast2 ICECAST_PORT=8000 ICECAST_MOUNT=/stream LIQUIDSOAP_HARBOR_MOUNT=/live LIQUIDSOAP_HARBOR_PORT=8001 # --- TLS / identity ---------------------------------------------------------- # DOMAIN is also the auth cookie's domain, so it must be the host the browser # is on. Nothing reads EMAIL any more (it was certbot's). DOMAIN=localhost EMAIL=dev@example.invalid # --- Cloudflare Tunnel ------------------------------------------------------- # cloudflared is disabled in dev, and dev's Caddy sites use `tls internal`, # so neither token is ever used. CLOUDFLARE_TUNNEL_TOKEN=dev-dummy-tunnel-token CLOUDFLARE_DNS_API_TOKEN=dev-dummy-dns-token # --- Third-party API keys ---------------------------------------------------- # Fake keys: Claude calls (rowing photos, job posting reader) get a 401 from # Anthropic, and the Steam widget gets nothing back. CLAUDE_API_KEY=sk-ant-dev-dummy-key CLAUDE_MODEL= STEAM_API_KEY=DEVDUMMYSTEAMKEY STEAM_ID=76561190000000000 # --- Development-only switch ------------------------------------------------- SEED_DB=true # --- Python FastAPI service (/py/) ------------------------------------------- PYTHON_HOST=python PYTHON_PORT=8000 # --- USACO site (/usaco/) ------------------------------------------------------ USACO_IMAGE_TAG= USACO_GIT_TOKEN=dev-dummy-gitea-token USACO_WEBHOOK_SECRET=dev-dummy-webhook-secret # --- Activity tracker (/tracker/) -------------------------------------------- ACTIVITY_TRACKER_IMAGE_TAG= TRACKER_TZ=Europe/London TFL_APP_KEY=dev-dummy-tfl-key # --- Garage object store (public /uploads/, on stpcore) ----------------------- # Uploads fall back to the `uploads` volume unless a dev stpcore is running # with LAN_BIND=172.17.0.1 and these same dummy values (see stpcore's README). # Shapes Garage enforces: "GK" + 24 hex for the key id, 64 hex for the secret. GARAGE_UPSTREAM=host-gateway GARAGE_WEBUI_TOKEN=dev-garage-webui-token S3_ACCESS_KEY_ID=GK0123456789abcdef01234567 S3_SECRET_ACCESS_KEY=fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210 S3_ENDPOINT=http://garage:3900 S3_REGION=garage S3_BUCKET=uploads STPPRIV_LAN_IP=192.0.2.1