Files
stackpilot/agent/docker-compose.yml
T
menzelj d81c48a5c0
CI / build-and-push (push) Successful in 4m5s
ci: point images at git.menzel.center and add build-and-push workflow
Image references still pointed at the old server (10.10.6.10:3020/menzelj);
menzelj was never a valid namespace there either, the actual account is
menzeljonas. Also adds .gitea/workflows/ci.yml to build and push
backend, frontend and agent on push to main.
2026-08-25 08:40:18 +00:00

27 lines
1.1 KiB
YAML

# StackPilot agent — deploy this on each remote host you want to manage.
# It needs only the Docker socket and a shared AGENT_TOKEN (must match the
# token you enter when adding this host in the central StackPilot UI).
services:
agent:
image: git.menzel.center/menzeljonas/stackpilot-agent:latest
build:
context: .
args:
BACKEND_IMAGE: git.menzel.center/menzeljonas/stackpilot-backend:latest
restart: unless-stopped
environment:
- AGENT_TOKEN=${AGENT_TOKEN:?set AGENT_TOKEN in .env}
- STACKS_DIR=/opt/stacks
- HOST_PROC_PATH=/host_proc
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# Same rule as the central app: this must resolve to the same path as
# STACKS_DIR, or the stacks' relative bind mounts (./config) end up at the
# container path on the host, where the agent cannot see them.
- ${STACKS_HOST_DIR:-/opt/stacks}:/opt/stacks
- /proc:/host_proc:ro
# Read-only host devices for status/detection parity with the main host.
- /dev:/dev:ro
ports:
- "5010:5010"