integration: worker image, bridge, compose, Makefile, deploy scripts

This commit is contained in:
Raphael Westphal
2026-08-18 13:03:57 +02:00
parent 631aaf060b
commit 05ad577eea
8 changed files with 202 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
# lvmh daemon + worker builder context. Build worker image first (make worker-image).
services:
lvmh:
build:
context: .
dockerfile: daemon/Dockerfile
image: lvmh-daemon:latest
container_name: lvmh-daemon
restart: unless-stopped
ports:
- "8686:8686"
environment:
LVMH_TOKEN: ${LVMH_TOKEN}
ZAI_RENAUD_API_KEY: ${ZAI_RENAUD_API_KEY}
# How spawned containers reach the daemon: alias on the shared network.
LVMH_CONTAINER_LVMH_URL: ws://lvmh:8686/agent/ws
GITLAB_BASE_URL: https://git.westphal.fr
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- lvmh-data:/data
- .:/app/build:ro # repo checkout (rsynced by deploy.sh)
# daemon rebuilds lvmh-worker from /app/build/docker/worker.Dockerfile
networks:
lvmh-net:
aliases: [lvmh]
volumes:
lvmh-data:
networks:
lvmh-net:
name: lvmh-net