feat(deploy): Docker Compose setup for one host
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 12m24s
ci / test (pull_request) Successful in 12m37s
ci / build (pull_request) Successful in 15m44s
ci / image (pull_request) Successful in 4m34s

deploy/compose runs the console and API with a migration step before it
starts, and through COMPOSE_PROFILES optionally a bundled TimescaleDB and
Redis (leave them out to use your own by URL), a checker and a status
page server. Only the public URL and the secret keys are mandatory, so
every combination of profiles starts; containers run read-only without
capabilities. The API gains a health command for the image's
HEALTHCHECK, as checker and status page server have.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-23 21:50:37 +01:00
1 parent b05afc8c79
commit fc8c01b9a4
5 files changed
+197

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
# Settings for compose.yaml; copy to .env (chmod 600) and fill in.
# Parts to run: db and redis bundle TimescaleDB and Redis, checker and
# statuspage add a checker and a status page server on this host.
COMPOSE_PROFILES=db,redis
# Image and channel: latest (releases), beta, edge (main), or a version.
UPTIME_TAG=latest
# UPTIME_IMAGE=git.zb-server.de/zb-server/uptimesebi
# Address users reach the console at.
UPTIME_PUBLIC_URL=http://localhost:8080
UPTIME_PORT=8080
# Encrypts stored secrets; generate with: echo "k1:$(head -c32 /dev/urandom | base64)"
UPTIME_SECRET_KEYS=
# first-user, open or closed.
UPTIME_SIGNUP=first-user
# UPTIME_SMTP_URL=smtp://user:pass@host:587?from=alerts@example.com
# Address of a reverse proxy in front, e.g. 172.16.0.0/12 for one in Docker.
# UPTIME_TRUSTED_PROXIES=
# Bundled database and Redis (profiles db and redis); generate with:
# head -c24 /dev/urandom | base64 | tr -d '/+='
POSTGRES_PASSWORD=
REDIS_PASSWORD=
# Or your own; then drop db and redis from COMPOSE_PROFILES.
# UPTIME_DATABASE_URL=postgres://uptime:...@db.example.com:5432/uptime?sslmode=require
# UPTIME_REDIS_URL=redis://:...@redis.example.com:6379/0
# Checker on this host (profile checker); token from:
# docker compose exec api api region add <key> <name>
# docker compose exec api api agent create --kind checker --region <key> --name <name>
# UPTIME_CHECKER_TOKEN=
# Status page server on this host (profile statuspage); token from:
# docker compose exec api api agent create --kind statuspage --name <name>
# UPTIME_STATUSPAGE_TOKEN=
# UPTIME_STATUSPAGE_HOSTS=status.example.com
# UPTIME_STATUSPAGE_PORT=8082
# UPTIME_STATUSPAGE_URL=https://status.example.com