Shares gatus's network namespace (network_mode: service:gatus) so mesh routes apply to gatus directly — same semantics as the k8s sidecar. Enable with COMPOSE_PROFILES=postgres,netbird + NETBIRD_SETUP_KEY in .env.
35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
# R2D2-Status environment — copy to .env and fill in secrets.
|
|
# docker compose reads .env automatically; use `--env-file .env.local` for local dev.
|
|
|
|
# Compose profiles: "postgres" runs the bundled database ("postgres,netbird"
|
|
# also joins the VPN mesh). Leave empty to run gatus alone (set
|
|
# GATUS_STORAGE_TYPE=sqlite or memory in that case).
|
|
COMPOSE_PROFILES=postgres
|
|
|
|
# Image / publishing
|
|
GATUS_IMAGE=r2d2-status/gatus
|
|
GATUS_TAG=latest
|
|
|
|
# Gatus runtime
|
|
GATUS_PORT=8080
|
|
GATUS_LOG_LEVEL=INFO
|
|
|
|
# Storage: postgres | sqlite | memory
|
|
GATUS_STORAGE_TYPE=postgres
|
|
# postgres: leave GATUS_STORAGE_PATH unset/commented (compose derives the DSN
|
|
# from the POSTGRES_* values below)
|
|
# sqlite: GATUS_STORAGE_PATH=/data/gatus.db
|
|
# memory: GATUS_STORAGE_PATH= (uncommented and empty — gatus rejects
|
|
# memory storage with a non-empty path)
|
|
#GATUS_STORAGE_PATH=
|
|
|
|
# Bundled postgres (postgres profile only)
|
|
POSTGRES_USER=gatus
|
|
POSTGRES_PASSWORD=CHANGE_ME
|
|
POSTGRES_DB=gatus
|
|
|
|
# NetBird VPN sidecar (netbird profile only) — reusable server setup key from
|
|
# the NetBird admin console (Setup Keys). Never a PAT.
|
|
NETBIRD_SETUP_KEY=
|
|
#NETBIRD_MANAGEMENT_URL=https://netbird.office.ilab.zone:33073
|
|
#NETBIRD_HOSTNAME=r2d2-status-compose
|