2026-05-12 20:19:05 +02:00
|
|
|
services:
|
|
|
|
|
operator-ui:
|
|
|
|
|
build: .
|
|
|
|
|
container_name: control-plane-ui
|
|
|
|
|
user: "1000:1000"
|
|
|
|
|
command: python src/operator_ui.py
|
|
|
|
|
ports:
|
2026-05-12 20:22:46 +02:00
|
|
|
- "18180:8080"
|
2026-05-12 20:19:05 +02:00
|
|
|
volumes:
|
|
|
|
|
- /opt/homelab:/opt/homelab
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
healthcheck:
|
2026-05-18 21:34:57 +02:00
|
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/', timeout=3).read()"]
|
2026-05-12 20:19:05 +02:00
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
|
|
observer:
|
|
|
|
|
build: .
|
|
|
|
|
container_name: control-plane-observer
|
|
|
|
|
user: "1000:1000"
|
|
|
|
|
command: python /repo/scripts/observer/observer.py
|
|
|
|
|
volumes:
|
|
|
|
|
- /opt/homelab:/opt/homelab
|
|
|
|
|
- ../..:/repo:ro
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
|
|
|
|
- REPO_ROOT=/repo
|
|
|
|
|
- RUNTIME_PATH=/opt/homelab
|
2026-05-12 20:59:46 +02:00
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "test", "-f", "/opt/homelab/state/observer.heartbeat"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 5s
|
2026-05-12 20:19:05 +02:00
|
|
|
|
|
|
|
|
supervisor:
|
|
|
|
|
build: .
|
|
|
|
|
container_name: control-plane-supervisor
|
|
|
|
|
user: "1000:1000"
|
|
|
|
|
command: python src/supervisor.py
|
|
|
|
|
volumes:
|
|
|
|
|
- /opt/homelab:/opt/homelab
|
|
|
|
|
- ../..:/repo:ro
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
|
|
|
|
- REPO_ROOT=/repo
|
|
|
|
|
- RUNTIME_PATH=/opt/homelab
|
2026-05-12 20:59:46 +02:00
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "test", "-f", "/opt/homelab/state/supervisor.heartbeat"]
|
|
|
|
|
interval: 60s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 10s
|
2026-05-12 20:19:05 +02:00
|
|
|
|
|
|
|
|
executor:
|
|
|
|
|
build: .
|
|
|
|
|
container_name: control-plane-executor
|
|
|
|
|
command: python src/executor.py
|
|
|
|
|
volumes:
|
|
|
|
|
- /opt/homelab:/opt/homelab
|
|
|
|
|
- ../..:/repo
|
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
|
|
|
|
- REPO_ROOT=/repo
|
|
|
|
|
- RUNTIME_PATH=/opt/homelab
|
2026-05-12 20:59:46 +02:00
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "test", "-f", "/opt/homelab/state/executor.heartbeat"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 5s
|