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
10 lines
408 B
YAML
10 lines
408 B
YAML
# Lets the checker answer Docker monitors from this host's Docker API. Use it
|
|
# only for checkers that may see this host: the socket is read-only, but it
|
|
# still reveals everything running here. DOCKER_GID is the socket's group.
|
|
services:
|
|
checker:
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
group_add:
|
|
- "${DOCKER_GID:?set DOCKER_GID to the group of /var/run/docker.sock}"
|