-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
56 lines (50 loc) · 1.1 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
version: "3"
services:
frontend:
build:
context: .
dockerfile: FE/Dockerfile
container_name: QLab-Front-Server
environment:
VITE_BASE_URL: https://www.q-lab.site/api
VITE_NODE_ENV: production
expose:
- 80
backend:
build:
context: .
dockerfile: BE/Dockerfile
container_name: QLab-Service-Server
expose:
- 3000
environment:
DB_TYPE: mysql
DB_HOST: 10.0.1.7
DB_PORT: 3306
DB_USERNAME: root
DB_DATABASE: qlab
QUERY_DB_TYPE: mysql
QUERY_DB_HOST: 10.0.1.7
QUERY_DB_PORT: 3307
QUERY_DB_USER: root
QUERY_DB_DATABASE: qlab
REDIS_HOST: 10.0.1.7
REDIS_PORT: 6379
DB_PASSWORD: ${DB_PASSWORD}
QUERY_DB_PASSWORD: ${QUERY_DB_PASSWORD}
SESSION_SECRET: ${SESSION_SECRET}
LOGGER_DIR: /logs
volumes:
- /logs:/app/BE/logs
nginx:
build:
context: ./nginx
container_name: QLab-nginx-webServer
ports:
- "80:80"
- "443:443"
depends_on:
- frontend
- backend
volumes:
- /etc/letsencrypt:/ssl:ro