chore(mcpbox): use dind (#85)

Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto
2025-04-25 17:05:56 +02:00
committed by GitHub
parent 15efd2d527
commit c1844f7230
3 changed files with 26 additions and 2 deletions

View File

@@ -17,6 +17,11 @@ services:
file: docker-compose.yaml file: docker-compose.yaml
service: mcpbox service: mcpbox
dind:
extends:
file: docker-compose.yaml
service: dind
localrecall: localrecall:
extends: extends:
file: docker-compose.yaml file: docker-compose.yaml

View File

@@ -22,6 +22,11 @@ services:
file: docker-compose.yaml file: docker-compose.yaml
service: mcpbox service: mcpbox
dind:
extends:
file: docker-compose.yaml
service: dind
localrecall: localrecall:
extends: extends:
file: docker-compose.yaml file: docker-compose.yaml

View File

@@ -54,14 +54,28 @@ services:
- "8080" - "8080"
volumes: volumes:
- ./volumes/mcpbox:/app/data - ./volumes/mcpbox:/app/data
# share docker socket if you want it to be able to run docker commands environment:
- /var/run/docker.sock:/var/run/docker.sock - DOCKER_HOST=tcp://dind:2375
depends_on:
dind:
condition: service_healthy
healthcheck: healthcheck:
test: ["CMD", "wget", "-q", "-O", "-", "http://localhost:8080/processes"] test: ["CMD", "wget", "-q", "-O", "-", "http://localhost:8080/processes"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3
dind:
image: docker:dind
privileged: true
environment:
- DOCKER_TLS_CERTDIR=""
healthcheck:
test: ["CMD", "docker", "info"]
interval: 10s
timeout: 5s
retries: 3
localagi: localagi:
depends_on: depends_on:
localai: localai: