-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 1.38 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
49
version: '3.8'
services:
app:
build: .
ports:
- "8080:8080"
volumes:
- board-images:/app/data/board
- profile-images:/app/data/profile
- post-images:/app/data/post
depends_on:
- haedal-mysql
- haedal-redis
environment:
SPRING_DATASOURCE_URL: ${SPRING_DATASOURCE_URL}
SPRING_DATASOURCE_USERNAME: ${SPRING_DATASOURCE_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${SPRING_DATASOURCE_PASSWORD}
SPRING_DATA_REDIS_HOST: ${SPRING_DATA_REDIS_HOST}
SPRING_DATA_REDIS_PORT: ${SPRING_DATA_REDIS_PORT}
SPRING_DATA_REDIS_PASSWORD: ${SPRING_DATA_REDIS_PASSWORD}
SPRING_JWT_SECRET_KEY: ${SPRING_JWT_SECRET_KEY}
SPRING_MAIL_USERNAME: ${SPRING_MAIL_USERNAME}
SPRING_MAIL_PASSWORD: ${SPRING_MAIL_PASSWORD}
TZ: "Asia/Seoul"
restart: always
haedal-mysql:
image: mysql:8.0.36
volumes:
- db-data:/var/lib/mysql
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
TZ: "Asia/Seoul"
ports:
- "3306:3306"
haedal-redis:
image: redis:7.2-alpine
command: redis-server --requirepass ${SPRING_DATA_REDIS_PASSWORD} --port 6379
ports:
- "6379:6379"
environment:
TZ: "Asia/Seoul"
volumes:
db-data:
board-images:
profile-images:
post-images: