-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 1.11 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
services:
nest-app:
build:
context: ./
dockerfile: ./Dockerfile
depends_on:
- mysql-container
- redis-container
ports:
- 3005:3005
restart: always
networks:
- common-network
mysql-container:
image: mysql
volumes:
- /root/volume/mysql:/var/lib/mysql
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci # 设置默认字符集
environment:
MYSQL_DATABASE: meeting_room_booking_system
MYSQL_ROOT_PASSWORD: guang
ports:
- 3306:3306
restart: always
networks:
- common-network
redis-container:
image: redis
volumes:
- /root/volume/redis:/data
ports:
- 6379:6379
restart: always
networks:
- common-network
minio-container:
image: bitnami/minio:latest
ports:
- 9000:9000
- 9001:9001
volumes:
- /root/volume/minio:/bitnami/minio/data
environment:
MINIO_ROOT_USER: guang
MINIO_ROOT_PASSWORD: dongdong
restart: always
networks:
- common-network
networks:
common-network:
driver: bridge