File tree Expand file tree Collapse file tree 5 files changed +29
-12
lines changed
Expand file tree Collapse file tree 5 files changed +29
-12
lines changed Original file line number Diff line number Diff line change 1- DB_URL = jdbc:postgresql://localhost:5432/climbup-db
1+ DB_URL = jdbc:postgresql://localhost:5432/climbup_db
22DB_USERNAME = root
33DB_PASSWORD = password
44
55# PostgreSQL container configuration
6- POSTGRES_DB = climbup-db
6+ POSTGRES_DB = climbup_db
77POSTGRES_USER = root
88POSTGRES_PASSWORD = password
99
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ COPY src ./src
66RUN gradle clean build -x test --no-daemon
77
88# Runtime stage
9- FROM openjdk:17-jre -slim
9+ FROM openjdk:17-jdk -slim
1010WORKDIR /app
1111COPY --from=build /app/build/libs/*SNAPSHOT.jar project.jar
1212EXPOSE 8080
Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ dependencies {
2727 implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
2828 implementation ' org.springframework.boot:spring-boot-starter-web'
2929 compileOnly ' org.projectlombok:lombok'
30- developmentOnly ' org.springframework.boot:spring-boot-devtools'
31- developmentOnly ' org.springframework.boot:spring-boot-docker-compose'
3230 runtimeOnly ' org.postgresql:postgresql'
3331 annotationProcessor ' org.projectlombok:lombok'
3432 testImplementation ' org.springframework.boot:spring-boot-starter-test'
3533 testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
34+ runtimeOnly(" org.flywaydb:flyway-database-postgresql:11.10.2" )
35+ implementation ' org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.9'
3636}
3737
3838tasks. named(' test' ) {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ spring :
2+ application :
3+ name : climbup-server
4+
5+ datasource :
6+ url : ${DB_URL:jdbc:postgresql://localhost:5432/climbup_db}
7+ username : ${DB_USERNAME:root}
8+ password : ${DB_PASSWORD:password}
9+
10+ jpa :
11+ hibernate :
12+ ddl-auto : update
13+ show-sql : true
14+
15+ flyway :
16+ enabled : true
17+ locations : classpath:db/migration
18+ validate-on-migrate : true
19+
20+ springdoc :
21+ api-docs :
22+ path : /api-docs
23+ swagger-ui :
24+ path : /docs
You can’t perform that action at this time.
0 commit comments