feat(agents): one-line install and Compose files for agents
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
This commit is contained in:
1 parent
a35dadd8f6
commit
0c382f814c
11 files changed
+562
-1
No files matched your search
@@ -0,0 +1,18 @@
|
||||
# UptimeSebi checker. 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:
|
||||
checker:
|
||||
image: ${UPTIME_AGENT_IMAGE:-git.zb-server.de/zb-server/uptimesebi}-checker:${UPTIME_AGENT_TAG:-latest-autoupdate}
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
volumes:
|
||||
- data:/var/lib/uptimesebi
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 10m
|
||||
max-file: "3"
|
||||
|
||||
volumes:
|
||||
data:
|
||||
Reference in new issue
Block a user