-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
124 lines (116 loc) · 2.46 KB
/
docker-compose.yml
File metadata and controls
124 lines (116 loc) · 2.46 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
services:
backend:
build: ./backend
env_file:
- .env
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./backend:/app
- ./uploads:/app/uploads
networks:
- app_network
depends_on:
db:
condition: service_healthy
chromadb:
condition: service_started
minio:
condition: service_started
restart: on-failure
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
frontend:
build: ./frontend
volumes:
- ./frontend:/app
- /app/node_modules
networks:
- app_network
db:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=ragwebui
- MYSQL_USER=ragwebui
- MYSQL_PASSWORD=ragwebui
- TZ=Asia/Shanghai
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
networks:
- app_network
healthcheck:
test:
[
"CMD",
"mysqladmin",
"ping",
"-h",
"localhost",
"-u",
"$$MYSQL_USER",
"--password=$$MYSQL_PASSWORD",
]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
chromadb:
image: chromadb/chroma:latest
ports:
- "8001:8000"
volumes:
- chroma_data:/chroma/chroma
networks:
- app_network
# For Qdrant, Remove the comment and run the following command to start the service
# qdrant:
# image: qdrant/qdrant:latest
# ports:
# - "6333:6333" # REST API
# - "6334:6334" # GRPC
# volumes:
# - qdrant_data:/qdrant/storage
# environment:
# - QDRANT_ALLOW_RECOVERY_MODE=true
# networks:
# - app_network
minio:
image: minio/minio:latest
ports:
- "9000:9000" # API port
- "9001:9001" # Console port
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
volumes:
- minio_data:/data
command: server --console-address ":9001" /data
networks:
- app_network
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- frontend
- backend
- minio
networks:
- app_network
volumes:
mysql_data:
chroma_data:
minio_data:
# qdrant_data:
networks:
app_network:
driver: bridge