-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.17 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
services:
api:
build:
context: .
dockerfile: docker/Dockerfile.api
container_name: sphinx-api
environment:
SPHINX_DATABASE_URL: sqlite:///data/sphinx.db
SPHINX_SEED_DEMO_DATA: "true"
SPHINX_DEFAULT_POLICY_SEED: "true"
ports:
- "8001:8001"
volumes:
- sphinx-data:/srv/data
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8001/api/health', timeout=2)"]
interval: 10s
timeout: 5s
retries: 5
mcp:
build:
context: .
dockerfile: docker/Dockerfile.api
container_name: sphinx-mcp
command: ["python", "-m", "sphinx.mcp.server", "--http", "--port", "8100"]
environment:
SPHINX_DATABASE_URL: sqlite:///data/sphinx.db
ports:
- "8100:8100"
volumes:
- sphinx-data:/srv/data
depends_on:
api:
condition: service_started
web:
build:
context: .
dockerfile: docker/Dockerfile.web
container_name: sphinx-web
ports:
- "8080:80"
depends_on:
api:
condition: service_healthy
mcp:
condition: service_started
volumes:
sphinx-data: