-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (38 loc) · 955 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (38 loc) · 955 Bytes
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
version: "3"
services:
db:
restart: always
image: mysql:8.0
ports:
- 3308:3306
environment:
- ./db/conf.d:/etc/mysql/conf.d
- ./db/data/:/var/lib/mysql/
- MYSQL_ROOT_PASSWORD=dltjgus119
- TZ=Asia/Seoul
- MYSQL_DATABASE=econovation
redis:
container_name: redis
image: redis
ports:
- 6379:6379
command: ["redis-server", "--protected-mode", "no"]
extra_hosts:
- "host.docker.internal:host-gateway"
app:
build: .
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://db:3306/econovation?allowPublicKeyRetrieval=true&useSSL=false&useUnicode=true&serverTimezone=Asia/Seoul
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: dltjgus119
container_name: spring-app
image: blackbean99/econovation_idp:latest
links:
- redis
ports:
- 8080:8080
depends_on:
- db
- redis
restart: always
tty: true