-
Notifications
You must be signed in to change notification settings - Fork 399
/
docker-compose.yml
132 lines (121 loc) · 2.67 KB
/
docker-compose.yml
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
125
126
127
128
129
130
131
132
version: "3.9"
services:
llm-server:
restart: unless-stopped
build:
context: ./llm-server
dockerfile: Dockerfile
target: ${TARGET}
image: codebanesr/llm-server:latest
volumes:
- ./llm-server:/app
- shared_data:/app/shared_data
networks:
- opencopilot-net
env_file:
- llm-server/.env
ports:
- 8002:8002
- 5678:5678
depends_on:
mysql:
condition: service_healthy
qdrant:
condition: service_started
redis:
image: redis:latest
container_name: redis_cache
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- opencopilot-net
workers:
restart: unless-stopped
build:
context: ./llm-server
dockerfile: worker.Dockerfile
image: codebanesr/workers:latest # Add this line
deploy:
replicas: 1
networks:
- opencopilot-net
volumes:
- shared_data:/app/shared_data
env_file:
- llm-server/.env
command: sh -c "celery -A celery_app worker --loglevel=info"
depends_on:
mysql:
condition: service_healthy
qdrant:
condition: service_started
dashboard:
restart: unless-stopped
build:
context: ./dashboard
dockerfile: Dockerfile
image: codebanesr/dashboard:latest # Add this line
ports:
- 8000:8000
volumes:
- shared_data:/app/shared_data
networks:
- opencopilot-net
depends_on:
- llm-server
mysql:
restart: unless-stopped
platform: linux/x86_64
image: "mysql:8"
ports:
- "3307:3306"
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: opencopilot
MYSQL_USER: dbuser
MYSQL_PASSWORD: dbpass
volumes:
- database:/var/lib/mysql
networks:
- opencopilot-net
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
qdrant:
image: qdrant/qdrant
ports:
- 6333:6333
- 6334:6334
volumes:
- qdrant_storage:/qdrant/storage
networks:
- opencopilot-net
nginx:
image: nginx
restart: unless-stopped
ports:
- "8888:80"
volumes:
- ./container_config/nginx.conf:/etc/nginx/nginx.conf
networks:
- opencopilot-net
depends_on:
mysql:
condition: service_healthy
dashboard:
condition: service_started
llm-server:
condition: service_started
networks:
opencopilot-net:
name: opencopilot-net
volumes:
shared_data:
database:
qdrant_storage:
redis_data: