-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
123 lines (113 loc) · 3 KB
/
docker-compose.prod.yml
File metadata and controls
123 lines (113 loc) · 3 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
services:
db-mcp:
build:
context: .
dockerfile: db-mcp/Dockerfile
container_name: db-mcp
env_file:
- .env
environment:
# PostgreSQL connection string
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/${POSTGRES_DB}
volumes:
- ./allowed_tables.yaml:/cm-mcp/db-mcp/src/config/allowed_tables.yaml
networks:
- net_mcp
ports:
- "8000:8000"
command: ["python", "/cm-mcp/db-mcp/src/server.py"]
#command: /bin/sh -c "while sleep 1000; do :; done"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
ask-uos-mcp:
build:
context: .
dockerfile: ask-uos-mcp/Dockerfile
container_name: ask-uos-mcp
env_file:
- .env
environment:
AI_GATEWAY_KEY: ${AI_GATEWAY_KEY}
AI_GATEWAY_BASE_URL: ${AI_GATEWAY_BASE_URL:-https://api.openai.com/v1}
MODEL: ${MODEL:-gpt-oss}
volumes:
- ./ask_mcp_config.yml:/cm-mcp/ask-uos-mcp/config/ask_mcp_config.yml
command: ["python", "/cm-mcp/ask-uos-mcp/server.py"]
#command: /bin/sh -c "while sleep 1000; do :; done"
networks:
- net_mcp
ports:
- "8001:8001"
depends_on:
redis:
condition: service_started
crawl4ai:
condition: service_started
restart: unless-stopped
redis:
container_name: mcp_redis
image: redis:latest
volumes:
- redis-data:/data
ports:
- "6379"
command: >
--maxmemory 1024mb
--maxmemory-policy allkeys-lru
--maxmemory-samples 5
networks:
- net_mcp
restart: always
postgres:
image: postgres:17-alpine
container_name: his-postgres
env_file:
- .env
environment:
POSTGRES_USER: ${POSTGRES_USER:-his-test}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-his_password}
POSTGRES_DB: ${POSTGRES_DB:-his_db}
PGDATA: /var/lib/postgresql/data/pgdata
networks:
- net_mcp
volumes:
- postgres-data:/var/lib/postgresql/data
- ./2026-01-07_hisinone_edu6.backup:/tmp/backup.backup
#- ./restore-backup.sh:/tmp/restore-backup.sh
ports:
- "${POSTGRES_PORT_EXTERNAL:-5455}:5432"
healthcheck:
#test: ["CMD-SHELL", "pg_isready"]
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-his-test} -d ${POSTGRES_DB:-his_db}"]
restart: unless-stopped
crawl4ai:
image: unclecode/crawl4ai:0.8.0
container_name: crawl4ai-mcp
networks:
- net_mcp
ports:
- "11235"
restart: unless-stopped
caddy:
image: docker.io/library/caddy:2.11-alpine
container_name: caddy
restart: unless-stopped
volumes:
- "./Caddyfile:/etc/caddy/Caddyfile" # Caddy configuration
- caddy_data:/data # Caddy data (e.g. certificates)
- caddy_config:/config
networks:
- net_mcp
ports:
- "80:80" # HTTP
- "443:443" # HTTPS
volumes:
postgres-data:
caddy_data:
caddy_config:
redis-data:
networks:
net_mcp:
driver: bridge