Add to dockerfile

Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto
2025-04-22 23:08:03 +02:00
committed by mudler
parent 6d9c58e6c0
commit 3ebeb82f0d

View File

@@ -46,12 +46,33 @@ services:
image: busybox image: busybox
command: ["sh", "-c", "until wget -q -O - http://localrecall:8080 > /dev/null 2>&1; do echo 'Waiting for localrecall...'; sleep 1; done; echo 'localrecall is up!'"] command: ["sh", "-c", "until wget -q -O - http://localrecall:8080 > /dev/null 2>&1; do echo 'Waiting for localrecall...'; sleep 1; done; echo 'localrecall is up!'"]
mcpbox:
build:
context: .
dockerfile: Dockerfile.mcpbox
ports:
- "8080"
environment:
- DEBUG=true
volumes:
- ./volqumes/mcpbox:/app/data
healthcheck:
test: ["CMD", "wget", "-q", "-O", "-", "http://localhost:8080/processes"]
interval: 30s
timeout: 10s
retries: 3
depends_on:
localai:
condition: service_healthy
localagi: localagi:
depends_on: depends_on:
localai: localai:
condition: service_healthy condition: service_healthy
localrecall-healthcheck: localrecall-healthcheck:
condition: service_completed_successfully condition: service_completed_successfully
mcpbox:
condition: service_healthy
build: build:
context: . context: .
dockerfile: Dockerfile.webui dockerfile: Dockerfile.webui
@@ -68,6 +89,7 @@ services:
- LOCALAGI_STATE_DIR=/pool - LOCALAGI_STATE_DIR=/pool
- LOCALAGI_TIMEOUT=5m - LOCALAGI_TIMEOUT=5m
- LOCALAGI_ENABLE_CONVERSATIONS_LOGGING=false - LOCALAGI_ENABLE_CONVERSATIONS_LOGGING=false
- LOCALAGI_MCPBOX_URL=http://mcpbox:8080
extra_hosts: extra_hosts:
- "host.docker.internal:host-gateway" - "host.docker.internal:host-gateway"
volumes: volumes: