forked from wenqiyun/nest-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
60 lines (54 loc) · 1.03 KB
/
docker-compose.yaml
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
version: "3"
services:
client:
build:
context: ./client
dockerfile: ./Dockerfile
restart: always
ports:
- 9540:9540
volumes:
- upload:/usr/share/nginx/html/static
depends_on:
- servers
servers:
build:
context: ./servers
dockerfile: ./Dockerfile
command: npm run start:docker
restart: always
ports:
- 8080:8080
volumes:
- upload:/upload
depends_on:
- mysql
- redis
mysql:
image: mysql:5
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_DATABASE: 'kapok'
volumes:
- mysql:/var/lib/mysql
- ./db/kapok.sql:/docker-entrypoint-initdb.d/kapok.sql
adminer:
image: adminer
restart: always
ports:
- 8088:8080
redis:
image: redis
restart: always
ports:
- 6379:6379
volumes:
- redis:/data
volumes:
mysql:
redis:
upload: