-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
62 lines (60 loc) · 1.58 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
62 lines (60 loc) · 1.58 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
# =============================================================================
# FNEWSTEER — Docker Compose
# Runs the API and MCP SSE server together.
#
# Usage:
# docker compose up --build # build and start both
# docker compose up --build api # API only
# docker compose up --build mcp # MCP only
# docker compose down # stop and remove containers
# =============================================================================
services:
api:
build:
context: . # workspace root — both Dockerfiles need this
dockerfile: packages/api/Dockerfile
image: fnewsteer-api
container_name: fnewsteer-api
ports:
- '8000:8000'
env_file:
- .env
restart: unless-stopped
healthcheck:
test:
[
'CMD',
'python3',
'-c',
"import urllib.request; urllib.request.urlopen('http://localhost:8000/health')",
]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
mcp:
build:
context: . # workspace root
dockerfile: packages/mcp/Dockerfile
image: fnewsteer-mcp
container_name: fnewsteer-mcp
ports:
- '8001:8001'
env_file:
- .env
environment:
- MCP_SSE_HOST=0.0.0.0
- MCP_SSE_PORT=8001
restart: unless-stopped
healthcheck:
test:
[
'CMD',
'python3',
'-c',
"import urllib.request; urllib.request.urlopen('http://localhost:8001/health')",
]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s