-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.35 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.35 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
services:
postgres:
image: postgres:16-alpine
container_name: knot-postgres-test
environment:
POSTGRES_DB: knot_test
POSTGRES_USER: knot_user
POSTGRES_PASSWORD: knot_password
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./docker/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U knot_user -d knot_test"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
networks:
- knot-network
knot-mcp:
build:
context: .
dockerfile: docker/Dockerfile.knot
cache_from:
- knot-knot-mcp:latest
# Persistent build cache
args:
BUILDKIT_INLINE_CACHE: 1
image: knot-knot-mcp:latest
container_name: knot-mcp-server
ports:
- "9094:9094"
environment:
- KNOT_POSTGRES_ENDPOINT=postgres://knot_user:knot_password@postgres:5432/knot_test?sslmode=disable
- KNOT_MCP_TRANSPORT_MODE=http
- KNOT_MCP_ADDRESS=0.0.0.0
- KNOT_MCP_PORT=9094
- KNOT_LOG_LEVEL=debug
depends_on:
postgres:
condition: service_healthy
networks:
- knot-network
restart: unless-stopped
volumes:
postgres_data:
driver: local
networks:
knot-network:
driver: bridge