-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (48 loc) · 1.26 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
41
42
43
44
45
46
47
48
version: "3.8"
services:
going-redis:
container_name: eot-redis
build:
dockerfile: Dockerfile
context: ./redis
image: moonsungkim/going-redis
labels:
- "name=redis"
- "mode=standalone"
platform: linux/amd64
ports:
- "6379:6379"
going-database:
container_name: going-database
image: mysql
platform: linux/amd64
environment:
- MYSQL_DATABASE=going
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_USER_PASSWORD}
- TZ=Asia/Seoul
volumes:
- ./database/config:/etc/mysql/conf.d
- ./database/init:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --default-authentication-plugin=mysql_native_password
restart: always
eot-app:
container_name: going-app
build: .
depends_on:
- going-database
- going-redis
image: moonsungkim/going-app
environment:
- SPRING_DATASOURCE_USERNAME=${SPRING_DATASOURCE_USERNAME}
- SPRING_DATASOURCE_PASSWORD=${SPRING_DATASOURCE_PASSWORD}
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE}
ports:
- "80:8080"
restart: always