-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 842 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (33 loc) · 842 Bytes
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
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: knowledgebase
POSTGRES_USER: knowledgebase
POSTGRES_PASSWORD: knowledgebase
healthcheck:
test: ["CMD-SHELL", "pg_isready -U knowledgebase -d knowledgebase"]
interval: 5s
timeout: 5s
retries: 20
volumes:
- /data2/db/knowledgebase:/var/lib/postgresql/data
ports:
- "15432:5432"
mcp:
build:
context: .
dockerfile: Dockerfile
user: "${COMPOSE_UID:-0}:${COMPOSE_GID:-0}"
environment:
DATABASE_URL: postgresql+psycopg://knowledgebase:knowledgebase@db:5432/knowledgebase
KB_DATA_DIR: /data
KB_MCP_HOST: 0.0.0.0
KB_MCP_PORT: 8765
depends_on:
db:
condition: service_healthy
volumes:
- ./data:/data
ports:
- "8765:8765"