The API serves /install.sh with its public address and agent image filled in. The POSIX sh script checks for Linux on a supported CPU, Docker and Compose, writes /opt/uptimesebi/<kind>[-<name>]/compose.yaml and a .env readable only by its owner, starts the agent and waits until it is healthy. Options cover status page hosts with Let's Encrypt, the plain image for manual updates, the Docker socket for checkers and several agents per host; running it again changes the settings. The Compose files in deploy/agent are configured through .env alone, so they also work without the script. Images follow the platform's channel (latest, beta or edge). CI shellchecks the rendered script. Closes #130 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
24 lines
758 B
YAML
24 lines
758 B
YAML
# UptimeSebi status page server. Settings are in .env next to this file;
|
|
# start with `docker compose up -d`. UPTIME_AGENT_TAG picks the image:
|
|
# latest-autoupdate follows the platform's release by itself, latest (or a
|
|
# version) does not.
|
|
services:
|
|
statuspage:
|
|
image: ${UPTIME_AGENT_IMAGE:-git.zb-server.de/zb-server/uptimesebi}-statuspage:${UPTIME_AGENT_TAG:-latest-autoupdate}
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
ports:
|
|
# HTTP; with TLS it answers ACME challenges and redirects to HTTPS.
|
|
- "${UPTIME_HTTP_PORT:-80}:8082"
|
|
- "${UPTIME_HTTPS_PORT:-443}:8443"
|
|
volumes:
|
|
- data:/var/lib/uptimesebi
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: 10m
|
|
max-file: "3"
|
|
|
|
volumes:
|
|
data:
|