-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
75 lines (70 loc) · 1.92 KB
/
docker-compose.yaml
File metadata and controls
75 lines (70 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
secrets:
gcp-credentials:
file: ~/.config/gcloud/application_default_credentials.json
x-podman.relabel: Z
services:
llama-stack:
image: docker.io/llamastack/distribution-starter:0.2.18
container_name: llama-stack
ports:
- "8321:8321"
volumes:
- ./run-llama-stack.yaml:/app-root/run.yaml:Z
# entrypoint: ["sleep", "10000h"]
entrypoint: ["python", "-m", "llama_stack.core.server.server"]
command: ["/app-root/run.yaml", "--port", "8321"]
environment:
- VERTEXAI_PROJECT=${VERTEXAI_PROJECT}
- GOOGLE_APPLICATION_CREDENTIALS=/run/secrets/gcp-credentials
- LLAMA_STACK_LOG=DEBUG
- VLLM_URL=${VLLM_URL}
- VLLM_API_TOKEN=test
- VLLM_MAX_TOKENS=4096
- VLLM_TLS_VERIFY=false
- INFERENCE_MODEL=gemma3:27b-it-qat
secrets:
- gcp-credentials
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8321/v1/health"]
interval: 5s
timeout: 5s
retries: 5
start_period: 5s
networks:
- lightspeednet
lightspeed-stack:
image: quay.io/lightspeed-core/lightspeed-stack:latest
container_name: lightspeed-stack
ports:
- "8080:8080"
volumes:
- ./config.yaml:/app-root/lightspeed-stack.yaml:Z
- ./lightspeed_system_prompt.txt:/app-root/lightspeed_system_prompt.txt:Z
depends_on:
llama-stack:
condition: service_healthy
networks:
- lightspeednet
mcp-server:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- PYTHONUNBUFFERED=1
volumes:
- ./mcp_server.py:/app/mcp_server.py:z
command: uv run python mcp_server.py
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- lightspeednet
networks:
lightspeednet:
driver: bridge