Skip to content

Commit 536fa10

Browse files
committedDec 1, 2024
[chore] 개발 서버 docker-compose-dev.yml 설정
1 parent 2727643 commit 536fa10

File tree

6 files changed

+19
-21
lines changed

6 files changed

+19
-21
lines changed
 

‎.github/workflows/CD-dev.yml

Whitespace-only changes.
File renamed without changes.

‎docker-compose-dev.yml

+7-19
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,14 @@ services:
33
build:
44
context: .
55
dockerfile: Dockerfile
6+
container_name: moplus-server-dev
67
restart: always
78
ports:
8-
- 8080:8080
9+
- 8081:8080
910
environment:
1011
- 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
2314
depends_on:
2415
- mysql
2516
networks:
@@ -29,13 +20,10 @@ services:
2920
mysql:
3021
image: mysql:8.0
3122
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
3725
ports:
38-
- "3306:3306"
26+
- "3307:3306"
3927
volumes:
4028
- mysql_data:/var/lib/mysql
4129
networks:

‎src/main/resources/application-dev.yml

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ spring:
66
hibernate:
77
ddl-auto: update
88

9-
109
logging:
1110
level:
1211
root: ERROR
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

‎src/main/resources/application.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
spring:
22
profiles:
3-
active: local
3+
active: ${profile}
44
group:
55
local: "local, datasource"
66
dev: "dev, datasource"

0 commit comments

Comments
 (0)
Please sign in to comment.