# Buzz Docker Compose deployment This is the single-node/VPS deployment bundle. It is intentionally separate from the root `docker-compose.yml`, which remains local development infrastructure. ## Quick start ```bash cd deploy/compose cp .env.example .env $EDITOR .env # replace every CHANGE_ME value ./run.sh start ``` For a public VPS with automatic Let's Encrypt certificates: ```bash cd deploy/compose BUZZ_COMPOSE_TLS=true ./run.sh start ``` The bootstrap script should eventually replace manual `.env` editing for normal users. It is responsible for generating stable secrets and, optionally, an owner keypair. ## Production notes - Requires Docker Compose v2.24.4 or newer; the TLS override uses Compose's `!reset` tag to remove the direct relay port when Caddy terminates HTTPS. - Default `BUZZ_IMAGE` tracks `ghcr.io/block/buzz:main` for early testing. Pin it to `ghcr.io/block/buzz:sha-<7>` or a semver release tag for production once available. - Keep `BUZZ_RELAY_PRIVATE_KEY`, `BUZZ_GIT_HOOK_HMAC_SECRET`, database/Redis, Typesense, and S3 secrets stable across restarts. - `RELAY_OWNER_PUBKEY` is intentionally not prefixed with `BUZZ_`; it must be a 64-character hex Nostr pubkey when closed relay mode is enabled. - `BUZZ_AUTO_MIGRATE=true` requires an image that includes embedded SQLx migrations. Do not share this quick start for a fresh public install until PR #988 is merged and `ghcr.io/block/buzz:main` has been rebuilt from it. Before then, this bundle is only suitable for instances whose database schema has already been applied. - The stack uses Postgres, Redis, Typesense, MinIO, and a git data volume because those are real Buzz dependencies today. Minimal mode can simplify this later. Run `./run.sh backup-hint` for the backup checklist. ## Validation Before sharing an install link publicly, verify a fresh install with: ```bash cd deploy/compose cp .env.example .env $EDITOR .env ./run.sh config ./run.sh start curl -fsS "http://127.0.0.1:$(grep -E '^BUZZ_HTTP_PORT=' .env | cut -d= -f2-)/_liveness" ./run.sh status ```