-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
33 lines (32 loc) · 1018 Bytes
/
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
version: '3.8'
services:
mysql:
image: mysql:8.0
container_name: mysql_container
volumes:
- ./db/mysql/data:/var/lib/mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: ${DEV_MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${DEV_MYSQL_DATABASE_NAME}
MYSQL_USER: ${DEV_MYSQL_USER}
MYSQL_PASSWORD: ${DEV_MYSQL_PASSWORD}
networks:
- devtoon
mysql_test:
image: mysql:8.0
container_name: mysql_test_container
volumes:
- ./db/mysql_test/data:/var/lib/mysql
ports:
- "3307:3306" # 테스트용은 로컬에서 3307로 접속해야함
environment:
MYSQL_ROOT_PASSWORD: ${TEST_MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${TEST_MYSQL_DATABASE_NAME}
MYSQL_USER: ${TEST_MYSQL_USER}
MYSQL_PASSWORD: ${TEST_MYSQL_PASSWORD}
networks:
- devtoon
networks:
devtoon: