-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (60 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
65 lines (60 loc) · 1.45 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
version: '3.8'
services:
mcp-server:
build: .
container_name: splitmind-mcp-server
ports:
- "5050:5000"
environment:
- REDIS_URL=redis://redis:6379
- LOG_LEVEL=INFO
- HEARTBEAT_TIMEOUT=120
depends_on:
redis:
condition: service_healthy
volumes:
- ./logs:/app/logs
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/health').read()"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- splitmind-network
redis:
image: redis:7-alpine
container_name: splitmind-redis
ports:
- "6379:6379" # Expose for debugging, remove in production
volumes:
- redis-data:/data
- ./redis.conf:/usr/local/etc/redis/redis.conf:ro
command: redis-server /usr/local/etc/redis/redis.conf
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
- splitmind-network
redis-commander:
image: rediscommander/redis-commander:latest
container_name: splitmind-redis-ui
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8081:8081"
depends_on:
- redis
networks:
- splitmind-network
restart: unless-stopped
volumes:
redis-data:
driver: local
networks:
splitmind-network:
driver: bridge