-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
58 lines (54 loc) · 1.48 KB
/
docker-compose.dev.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
50
51
52
53
54
55
56
57
58
version: '3'
services:
redis:
container_name: redis
image: redis
restart: always
ports:
- "6379:6379"
networks:
- omd
mysql:
image: mysql
container_name: mysql
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
volumes:
- ./src/main/resources/data.sql:/docker-entrypoint-initdb.d/data.sql
ports:
- "3307:3306"
networks:
- omd
restart: always
backend:
env_file:
- .env
build:
context: .
dockerfile: Dockerfile.dev
working_dir: /app
container_name: develop
depends_on:
- redis
- mysql
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://${DB_HOST}:${DB_PORT}/${DB_NAME}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&serverTimezone=Asia/Seoul
SPRING_DATASOURCE_USERNAME: ${DB_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${DB_PASSWORD}
CLOUD_AWS_CREDENTIALS_ACCESS_KEY: ${S3_ACCESS_KEY} # AWS Access Key
CLOUD_AWS_CREDENTIALS_SECRET_KEY: ${S3_SECRET_KEY} # AWS Secret Key
CLOUD_AWS_REGION_STATIC: ap-northeast-2 # AWS Region, 예: ap-northeast-2
CLOUD_AWS_S3_BUCKET: omdbucket # AWS S3 Bucket Name
naver.api.client.id: ${NAVER_API_CLIENT_ID}
naver.api.client.secret: ${NAVER_API_CLIENT_SECRET}
ports:
- "8080:8080"
restart: always
networks:
- omd
networks:
omd:
driver: bridge