-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
76 lines (72 loc) · 1.71 KB
/
docker-compose.prod.yml
File metadata and controls
76 lines (72 loc) · 1.71 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
services:
# Backend API Service
backend:
container_name: backend
image: backend
build:
context: .
dockerfile: infrastructure/docker/backend.Dockerfile
target: production
ports:
- "8000:8000"
environment:
- NODE_ENV=production
- PORT=8000
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
- SEARXNG_API_URL=http://searxng:8080
depends_on:
- searxng
networks:
- aisearch-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
# Frontend Service
frontend:
container_name: frontend
image: frontend
build:
context: .
dockerfile: infrastructure/docker/frontend.Dockerfile
target: production
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_WS_URL=ws://localhost:8000
- NEXT_PUBLIC_API_URL=http://localhost:8000
depends_on:
- backend
networks:
- aisearch-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
# SearxNG Search Engine
searxng:
container_name: searxng
image: searxng
ports:
- "8080:8080"
volumes:
- ./settings.yml:/etc/searxng/settings.yml:ro
environment:
- SEARXNG_BASE_URL=http://localhost:8080/
networks:
- aisearch-network
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/stats"]
interval: 30s
timeout: 10s
retries: 3
networks:
aisearch-network:
driver: bridge
volumes:
searxng-data: