-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (49 loc) · 1.29 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
version: '3.8'
services:
nest-api:
container_name: nest-api
build:
context: .
dockerfile: Dockerfile
ports:
- '80:3000'
volumes:
- ~/docker_data/sip_tea/:/usr/local/lib/sip_tea/packages/be/static/
depends_on:
- nest-mysql
- nest-redis
restart: on-failure
env_file:
- .env
nest-mysql:
image: mysql:8
container_name: nest-mysql
environment:
MYSQL_DATABASE: sip_tea
volumes:
- ~/docker_data/mysql8/data:/var/lib/mysql
- ~/docker_data/mysql8/log:/var/log/mysql
- ~/docker_data/mysql8/mysql-files:/var/lib/mysql-files/
- ~/docker_data/mysql8/conf:/etc/mysql/conf.d
command:
[
'mysqld',
'--innodb-buffer-pool-size=80M',
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci',
'--default-time-zone=+8:00',
'--lower-case-table-names=1'
]
restart: always
env_file:
- .env
nest-redis:
container_name: nest-redis
image: redis:7
volumes:
- ~/docker_data/redis/data:/data
- ~/docker_data/redis/redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf --requirepass ${REDIS_PASSWORD} --bind nest-redis
restart: always
env_file:
- .env