-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (42 loc) · 1017 Bytes
/
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
version: '3.8'
services:
db:
image: mysql:5.7
restart: always
command: --lower_case_table_names=1
container_name: Probrain_db
ports:
- "${MYSQL_PORT}:3306"
env_file: .env
build: ./
environment:
- TZ=Asia/Seoul
volumes:
- ./db/conf.d:/etc/mysql/conf.d
- ./db/data:/var/lib/mysql
- ./db/initdb.d:/docker-entrypoint-initdb.d
dev_db:
image: mysql:5.7
restart: always
command: --lower_case_table_names=1
container_name: dev_db
ports:
- "${MYSQL_PORT}:3306"
env_file: .env
build: ./
environment:
- TZ=Asia/Seoul
volumes:
- ./dev/conf.d:/etc/mysql/conf.d
- ./dev/data:/var/lib/mysql
- ./dev/initdb.d:/docker-entrypoint-initdb.d
redis:
image: redis:alpine
command: redis-server --port 6379
container_name: Probrain_redis
hostname: redis_boot
labels:
- "name=redis"
- "mode=standalone"
ports:
- ${REDIS_PORT}:6379