-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
45 lines (42 loc) · 1.08 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
version: '3'
services:
mysql:
image: mysql:8.0
networks:
- solve_network
volumes:
- ./db/conf.d:/etc/mysql/conf.d
- ./db/data:/var/lib/mysql
- ./db/initdb.d:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
environment:
- TZ=Asia/Seoul
- MYSQL_ROOT_PASSWORD=rootpw
- MYSQL_USER=mysqluser
- MYSQL_PASSWORD=mysqlpw
- MYSQL_HOST=localhost
- MYSQL_PORT=3306
- MYSQL_DATABASE=solve
solve:
image: solve:0.0.1
networks:
- solve_network
ports:
- "8080:8080"
depends_on:
- mysql
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/solve?useSSL=false&allowPublicKeyRetrieval=true
- SPRING_DATASOURCE_USERNAME=mysqluser
- SPRING_DATASOURCE_PASSWORD=mysqlpw
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
- KAKAO_CLIENT_ID=
- KAKAO_CLIENT_SECRET=
- KAKAO_REDIRECT_URL=http://localhost/kakao/callback
- NAVER_CLIENT_ID=
- NAVER_CLIENT_SECRET=
- NAVER_REDIRECT_URL=naver/callback
networks:
solve_network:
driver: bridge