## Summary - Pin the Compose fallback and example environment to `ghcr.io/block/buzz:0.3.0`. Document how to opt into rolling `:main` builds and how to update the image tag before running `./run.sh upgrade`. - Set the Helm chart's default relay image to `0.3.0` through `appVersion` and bump the chart and quickstart to `0.1.12`. - Add a relay release checklist step to update both deployment defaults after each stable image is available. The existing chart release workflow publishes the bumped chart after merge. ### Related work [#2824](https://github.com/block/buzz/pull/2824) also touches self-host Compose. This PR covers release tags and upgrade instructions. ### Testing - Rendered Compose with the example environment, the fallback, and explicit image overrides. A fresh isolated Compose install reached readiness with `ghcr.io/block/buzz:0.3.0` and returned `ok` from `/_liveness`. - Passed Helm lint and all 85 unit tests. Rendered all four chart fixtures, verified the default image and an override, and packaged chart `0.1.12` with app version `0.3.0`. - The repository-wide `just ci` run passed. It started at `cf357b241`, and the final commit changes only the Compose upgrade text. --------- Signed-off-by: Star Lord <b89298dbe87c6b3fd8a425b535d9d161f23c88d555a47925ae0b04dfe02b201e@buzz.block.builderlab.xyz> Co-authored-by: Star Lord <b89298dbe87c6b3fd8a425b535d9d161f23c88d555a47925ae0b04dfe02b201e@buzz.block.builderlab.xyz>
3.7 KiB
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
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:
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.
Upgrade
Compose defaults to the exact relay release ghcr.io/block/buzz:0.3.0.
A BUZZ_IMAGE already set in .env takes precedence over that default.
To upgrade to a newer release, set BUZZ_IMAGE in .env to its exact relay
image tag, then run ./run.sh upgrade. For rolling test builds, set
BUZZ_IMAGE=ghcr.io/block/buzz:main.
Production notes
- Requires Docker Compose v2.24.4 or newer; the TLS override uses Compose's
!resettag to remove the direct relay port when Caddy terminates HTTPS. - Keep
BUZZ_RELAY_PRIVATE_KEY,BUZZ_GIT_HOOK_HMAC_SECRET, database/Redis, and S3 secrets stable across restarts. RELAY_OWNER_PUBKEYis intentionally not prefixed withBUZZ_; it must be a 64-character hex Nostr pubkey when closed relay mode is enabled.BUZZ_AUTO_MIGRATEis opt-in. SetBUZZ_AUTO_MIGRATE=trueor runbuzz-admin migratebefore starting the relay when bootstrapping a fresh database. Auto-migration requires an image that includes embedded SQLx migrations.- The stack uses Postgres, Redis, MinIO, and a git data volume because those are real Buzz dependencies today. Minimal mode can simplify this later.
- Mobile push remains off by default. To use the public gateway, keep the
template's explicit
BUZZ_PUSH_GATEWAY_DELIVERY_URLand setBUZZ_PUSH_ENABLED=true. To use another gateway, replace the exact HTTPS/v1/deliveries/apnsURL before enabling push. Newer gateways and relays also accept the platform-neutral/v1/deliveriesroute; the template stays on/v1/deliveries/apnsuntil the public gateway and a relay release both support it. - The bundled Compose stack fixes the relay endpoint to
http://minio:9000andBUZZ_S3_ADDRESSING_STYLE=path: Docker DNS resolvesminio, not<bucket>.minio. It is not configurable for an external S3 provider through.env; use the Helm chart or a custom Compose configuration for providers such as new Railway Storage Buckets that requirevirtualaddressing.
Run ./run.sh backup-hint for the backup checklist.
Bundled object storage uses Silo, a maintained
MinIO fork, with matching pgsty/silo and pgsty/mc release images pinned by
multi-platform digest. Both images allow anonymous pulls and support Linux
amd64 and arm64; the upstream Quay MinIO images no longer allow anonymous pulls.
The existing minio names and MINIO_* settings remain compatible. Keep the
Helm and Compose pins aligned when upgrading, and run Buzz's
object-store conformance probe
against the new release before deploying it.
For an existing MinIO data volume, follow Silo's migration guide and take a backup before upgrading. Replacing the container image upgrades the storage server as well as changing its registry.
Validation
Before sharing an install link publicly, verify a fresh install with:
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