-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (96 loc) · 2.22 KB
/
docker-compose.yml
File metadata and controls
102 lines (96 loc) · 2.22 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
services:
# MongoDB Database
mongo:
image: mongo:6
container_name: licenguard-mongo
environment:
MONGO_INITDB_DATABASE: licenguard
volumes:
- mongo-data:/data/db
ports:
- "27017:27017"
restart: unless-stopped
networks:
- licenguard-network
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/licenguard --quiet
interval: 10s
timeout: 5s
retries: 5
# Backend API (FastAPI)
api:
build:
context: ./backend
dockerfile: Dockerfile
container_name: licenguard-api
environment:
MONGODB_URI: mongodb://mongo:27017/licenguard
MONGODB_DB: licenguard
MCP_HTTP_URL: http://mcp:3333/mcp
env_file:
- ./backend/.env
ports:
- "4000:4000"
depends_on:
mongo:
condition: service_healthy
restart: unless-stopped
networks:
- licenguard-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Frontend (React)
web:
build:
context: ./apps/web
dockerfile: Dockerfile
args:
API_URL: http://localhost:4000
container_name: licenguard-web
env_file:
- ./apps/web/.env
ports:
- "5173:5173"
depends_on:
- api
restart: unless-stopped
networks:
- licenguard-network
# MCP Server
mcp:
build:
context: ./servers/mcp-licenguard
dockerfile: Dockerfile
container_name: licenguard-mcp
env_file:
- ./servers/mcp-licenguard/.env
environment:
API_URL: http://api:4000
# MCP_HTTP_ENABLED: "true"
# MCP_HTTP_PORT: "3333"
# MCP_HTTP_HOST: "0.0.0.0"
# MCP_HTTP_PATH: "/mcp"
# MCP_STDIO_ENABLED: "false"
# MCP_AUTO_IMPORT: "false"
# LOCAL_LLM_API_KEY: ""
# LOCAL_LLM_AUTH_HEADER: "X-API-Key"
# LOCAL_LLM_API_URL: ""
# RESPONSE_LANGUAGE: "Turkish"
ports:
- "3333:3333"
depends_on:
api:
condition: service_started
restart: unless-stopped
networks:
- licenguard-network
volumes:
mongo-data:
driver: local
networks:
licenguard-network:
driver: bridge