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

+1
View File
@@ -21,6 +21,7 @@ import (
const usage = `usage:
api [serve]
api migrate up|down|status
api health
api admin grant|revoke <email>
api region add <key> [name]
api agent create --kind checker|statuspage [--region <key>] --name <name>
+3
View File
@@ -48,6 +48,9 @@ func run(log *slog.Logger, level *slog.LevelVar, args []string) error {
return migrate(ctx, log, cfg, args[1:])
case "admin", "agent", "region":
return admin(ctx, cfg, args)
case "health":
// The image has no shell; Docker's HEALTHCHECK runs this.
return platform.ProbeLocal(ctx, cfg.Listen, "/healthz")
case "serve":
default:
return usageError{}