-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (63 loc) · 1.48 KB
/
docker-compose.yml
File metadata and controls
66 lines (63 loc) · 1.48 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
services:
backend:
build:
context: ./api
dockerfile: Dockerfile
container_name: docubot-backend
ports:
- "5001:5001"
env_file:
- ./api/.env
environment:
- PYTHONUNBUFFERED=1
- HOST=0.0.0.0
- API_PORT=5001
volumes:
- ./api:/app
- backend-tmp:/app/tmp
- /var/run/docker.sock:/var/run/docker.sock # Docker socket for MCP server
extra_hosts:
- "${LOCAL_URL_ENDPOINT}:host-gateway"
networks:
- docubot-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend:
build:
context: ./ui
dockerfile: Dockerfile
container_name: docubot-frontend
ports:
- "3000:3000"
environment:
- HOST=0.0.0.0
- PORT=3000
- VITE_API_URL=/api
- VITE_API_TARGET=http://backend:5001
volumes:
- ./ui:/app
- /app/node_modules
depends_on:
backend:
condition: service_healthy
networks:
- docubot-network
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:3000', (r) => process.exit(r.statusCode === 200 ? 0 : 1))\""]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
docubot-network:
driver: bridge
name: docubot-network
volumes:
backend-tmp:
driver: local