-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
101 lines (96 loc) · 2.29 KB
/
docker-compose.yml
File metadata and controls
101 lines (96 loc) · 2.29 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:
# Nginx gateway - mirrors production Helm HTTPRoutes
# Always starts (no profile), so every `make dev` gets routing
gateway:
image: nginx:alpine
entrypoint: ["nginx"]
command: ["-g", "daemon off;"]
ports:
- "8080:8080"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/dev.conf:/etc/nginx/conf.d/default.conf:ro
networks:
- nlweb-network
restart: unless-stopped
# Ask API - REST/MCP/A2A server
ask-api:
build:
context: ./ask_api
dockerfile: Dockerfile
env_file:
- ./ask_api/.env
volumes:
- ~/.azure:/root/.azure
environment:
- PYTHONUNBUFFERED=1
- PYTHONPATH=/app
networks:
- nlweb-network
restart: unless-stopped
profiles:
- ask-api
- frontend
- fullstack
# Chat App - React frontend with Vite dev server
chat-app:
build:
context: ./frontend
dockerfile: chat-app/Dockerfile.dev
volumes:
- ./frontend/chat-app/src:/workspace/chat-app/src
- ./frontend/chat-app/public:/workspace/chat-app/public
- ./frontend/chat-app/index.html:/workspace/chat-app/index.html
depends_on:
- ask-api
networks:
- nlweb-network
profiles:
- frontend
- fullstack
# Crawler Master - API + Scheduler
crawler-master:
build:
context: ./crawler
dockerfile: Dockerfile
command: [".venv/bin/python", "-m", "nlweb_crawler.api"]
env_file:
- ./crawler/.env
environment:
- DOCKER_COMPOSE=true
- QUEUE_DIR=/app/data/queue
- QUEUE_TYPE=file
volumes:
- ./crawler/data:/app/data
- ~/.azure:/root/.azure
networks:
- nlweb-network
profiles:
- crawler
- fullstack
# Crawler Worker - Queue processor
crawler-worker:
build:
context: ./crawler
dockerfile: Dockerfile
command: [".venv/bin/python", "-m", "nlweb_crawler.worker"]
env_file:
- ./crawler/.env
environment:
- QUEUE_DIR=/app/data/queue
- QUEUE_TYPE=file
volumes:
- ./crawler/data:/app/data
- ~/.azure:/root/.azure
depends_on:
- crawler-master
deploy:
replicas: 1
networks:
- nlweb-network
profiles:
- crawler
- fullstack
networks:
nlweb-network:
driver: bridge