File tree 6 files changed +19
-21
lines changed
6 files changed +19
-21
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -3,23 +3,14 @@ services:
3
3
build :
4
4
context : .
5
5
dockerfile : Dockerfile
6
+ container_name : moplus-server-dev
6
7
restart : always
7
8
ports :
8
- - 8080 :8080
9
+ - 8081 :8080
9
10
environment :
10
11
- TZ=Asia/Seoul
11
- - SPRING_PROFILES_ACTIVE=dev
12
- - SPRING_DATASOURCE_URL=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${DB_NAME}?useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true&tinyInt1isBit=false
13
- - SPRING_DATASOURCE_USERNAME=${MYSQL_USERNAME}
14
- - SPRING_DATASOURCE_PASSWORD=${MYSQL_PASSWORD}
15
- - SENTRY_DSN=${SENTRY_DSN}
16
- - CLOUD_AWS_S3_BUCKET=${S3_BUCKET}
17
- - CLOUD_AWS_S3_SIGNATURE_VERSION=AWS4-HMAC-SHA256
18
- - CLOUD_AWS_CREDENTIALS_ACCESS_KEY=${AWS_ACCESS_KEY}
19
- - CLOUD_AWS_CREDENTIALS_SECRET_KEY=${AWS_SECRET_KEY}
20
- - CLOUD_AWS_REGION_STATIC=${AWS_REGION}
21
- - CLOUD_AWS_REGION_AUTO=false
22
- - CLOUD_AWS_STACK_AUTO=false
12
+ env_file :
13
+ - .env.dev
23
14
depends_on :
24
15
- mysql
25
16
networks :
@@ -29,13 +20,10 @@ services:
29
20
mysql :
30
21
image : mysql:8.0
31
22
container_name : moplus-mysql-dev
32
- environment :
33
- - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
34
- - MYSQL_DATABASE=${MYSQL_DATABASE}
35
- - MYSQL_USER=${MYSQL_USER}
36
- - MYSQL_PASSWORD=${MYSQL_PASSWORD}
23
+ env_file :
24
+ - .env.dev
37
25
ports :
38
- - " 3306 :3306"
26
+ - " 3307 :3306"
39
27
volumes :
40
28
- mysql_data:/var/lib/mysql
41
29
networks :
Original file line number Diff line number Diff line change 6
6
hibernate :
7
7
ddl-auto : update
8
8
9
-
10
9
logging :
11
10
level :
12
11
root : ERROR
Original file line number Diff line number Diff line change
1
+ spring :
2
+ config :
3
+ activate :
4
+ on-profile : prod
5
+ jpa :
6
+ hibernate :
7
+ ddl-auto : update
8
+
9
+ logging :
10
+ level :
11
+ root : ERROR
Original file line number Diff line number Diff line change 1
1
spring :
2
2
profiles :
3
- active : local
3
+ active : ${profile}
4
4
group :
5
5
local : " local, datasource"
6
6
dev : " dev, datasource"
You can’t perform that action at this time.
0 commit comments