-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
45 lines (42 loc) · 1.12 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
services:
mpesa-mcp-server:
build:
context: .
dockerfile: mcp_servers/mpesa/Dockerfile
container_name: mpesa-mcp-server
ports:
- "5002:5002"
environment:
- MPESA_MCP_SERVER_PORT=5002
- LOG_LEVEL=${LOG_LEVEL:-INFO}
restart: unless-stopped
networks:
- mcp-network
healthcheck:
test: ["CMD-SHELL", "python -c 'import socket; s=socket.socket(); s.connect((\"localhost\", 5002)); s.close()' || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
example-mcp-server:
build:
context: .
dockerfile: mcp_servers/example_server/Dockerfile
container_name: example-mcp-server
ports:
- "5003:5002"
environment:
- MPESA_MCP_SERVER_PORT=5002
- LOG_LEVEL=${LOG_LEVEL:-INFO}
restart: unless-stopped
networks:
- mcp-network
healthcheck:
test: ["CMD-SHELL", "python -c 'import socket; s=socket.socket(); s.connect((\"localhost\", 5002)); s.close()' || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
mcp-network:
driver: bridge