-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
35 lines (35 loc) · 1.2 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
version: '3.1'
services:
mysql:
container_name: goalajuma-mysql-dev
image: mysql/mysql-server:8.0.27
environment:
- MYSQL_DATABASE=goalajuma
- MYSQL_ROOT_HOST=%
- MYSQL_ROOT_PASSWORD=root
command: [ "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci", "--skip-character-set-client-handshake", "--lower_case_table_names=1", "--max_connections=2048", "--wait_timeout=3600" ]
ports:
- "13306:3306"
volumes: #볼륨 지정
- ./resources/local-develop-environment/mysql-init.d:/docker-entrypoint-initdb.d
networks: #사용할 네트워크 지정
- goalajuma-network
backend:
build:
context: .
dockerfile: Dockerfile
container_name: goalajuma-app-dev
ports:
- "8080:8080"
depends_on:
- mysql
restart: always
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://goalajuma-mysql-dev:3306/goalajuma?useSSL=false&serverTimezone=UTC&useLegacyDatetimeCode=false&allowPublicKeyRetrieval=true
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: root
SPRING_PROFILES_ACTIVE: dev
networks: #사용할 네트워크 지정
- goalajuma-network
networks:
goalajuma-network: