Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/user-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-aop'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.boot:spring-boot-testcontainers'
Expand Down
36 changes: 36 additions & 0 deletions apps/user-service/src/main/resources/application-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# application-develop.yml
spring:
config:
activate:
on-profile: develop

# PostgreSQL 데이터베이스 연결 설정
datasource:
url: jdbc:postgresql://localhost:5432/pre_process
username: postgres
password: password123
driver-class-name: org.postgresql.Driver

hikari:
connection-timeout: 30000
idle-timeout: 600000
max-lifetime: 1800000
maximum-pool-size: 10
minimum-idle: 5
pool-name: HikariCP-MyBatis

# JPA/Hibernate 설정
jpa:
hibernate:
ddl-auto: update # create, create-drop, update, validate, none
show-sql: true
format-sql: true
database: postgresql
database-platform: org.hibernate.dialect.PostgreSQLDialect
properties:
hibernate:
format_sql: true
use_sql_comments: true
jdbc:
lob:
non_contextual_creation: true

This file was deleted.

8 changes: 8 additions & 0 deletions apps/user-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
spring:
application:
name: mvp
profiles:
active: develop
mybatis:
# Mapper XML 파일 위치
mapper-locations: classpath:mapper/**/*.xml
2 changes: 1 addition & 1 deletion docker/local/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: qwer1234
ports:
- "8080:80"
- "8888:80"
volumes:
- pgadmin_data:/var/lib/pgadmin
depends_on:
Expand Down