forked from openchatai/copilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
82 lines (76 loc) · 1.59 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
version: "3"
services:
backend:
restart: unless-stopped
build:
context: ./backend
dockerfile: Dockerfile
depends_on:
- llm-server
- mysql
environment:
- DB_HOST=mysql
- DB_PORT=3306
- DB_DATABASE=opencopilot
- DB_USERNAME=dbuser
- DB_PASSWORD=dbpass
volumes:
- shared_data:/app/shared_data
networks:
- opencopilot_network
llm-server:
restart: unless-stopped
build:
context: ./llm-server
dockerfile: Dockerfile
volumes:
- shared_data:/app/shared_data
networks:
- opencopilot_network
dashboard:
restart: unless-stopped
build:
context: ./dashboard
dockerfile: Dockerfile
volumes:
- shared_data:/app/shared_data
networks:
- opencopilot_network
depends_on:
- backend
- mysql
mysql:
restart: unless-stopped
platform: linux/x86_64
image: "mysql:5.7"
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_network
nginx:
image: nginx
restart: unless-stopped
ports:
- "8888:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
networks:
- opencopilot_network
depends_on:
- dashboard
- llm-server
- backend
- mysql
networks:
opencopilot_network:
volumes:
shared_data:
database: