-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (40 loc) · 1.15 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
# 로컬환경 테스트 용도로 사용됩니다.
version: "3.8"
services:
mysql-service:
build:
context: ./docker/mysql
dockerfile: Dockerfile
image: jp3pe/belf-kr/todo-mysql-service
container_name: belf-todo-mysql-service
ports:
- 3308:3306
command:
# 한글과 이모지 입력을 위하여 기본 문자셋 인코딩 변경
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
todo-service:
build:
context: ./
dockerfile: Dockerfile
image: jp3pe/belf-kr/todo-service
depends_on:
- mysql-service
container_name: belf-todo-service
ports:
- "3003:3003"
environment:
- SERVER_PORT=3003
- SERVER_PORT_OAUTH=3001
- DB_MASTER_HOST=host.docker.internal
- DB_MASTER_PORT=3308
- DB_MASTER_USERNAME=root
- DB_MASTER_PASSWORD=example
- DB_MASTER_DATABASE=belf
- DB_SLAVE_HOST=host.docker.internal
- DB_SLAVE_PORT=3308
- DB_SLAVE_USERNAME=root
- DB_SLAVE_PASSWORD=example
- DB_SLAVE_DATABASE=belf
- DB_SYNCHRONIZE=false
command: ["sh", "-c", "sleep 20 && npm run start:docker"]