-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from GDSC-Hongik/feature/compose
docker compose 구성
- Loading branch information
Showing
6 changed files
with
50 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,36 @@ | ||
services: | ||
server: | ||
env_file: | ||
- ./env/server.env | ||
- ./env/db.env | ||
platform: linux/arm64 | ||
build: | ||
context: . | ||
ports: | ||
- 8080:8080 | ||
- "8080:8080" | ||
depends_on: | ||
- db | ||
|
||
db: | ||
env_file: | ||
- ./env/db.env | ||
image: postgres | ||
restart: always | ||
ports: | ||
- "5432:5432" | ||
volumes: | ||
- data:/data/db | ||
|
||
pgadmin: | ||
container_name: pgadmin | ||
image: dpage/pgadmin4 | ||
ports: | ||
- "8088:80" | ||
environment: | ||
- [email protected] | ||
- PGADMIN_DEFAULT_PASSWORD=0000 | ||
depends_on: | ||
- db | ||
|
||
volumes: | ||
data: |
9 changes: 4 additions & 5 deletions
9
...le/study_group/StudyGroupApplication.java → ...oc/study_group/StudyGroupApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
package com.example.study_group; | ||
package com.gdgoc.study_group; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
public class StudyGroupApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(StudyGroupApplication.class, args); | ||
} | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(StudyGroupApplication.class, args); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
server: | ||
port: 8080 | ||
address: | ||
port: ${SERVER_PORT} | ||
address: ${SERVER_ADDRESS} | ||
|
||
spring: | ||
application: | ||
name: study-group | ||
datasource: | ||
driver-class-name: org.postgresql.Driver | ||
url: jdbc:postgresql://${POSTGRES_URL}:${POSTGRES_PORT}/${POSTGRES_DB} | ||
username: ${POSTGRES_USER} | ||
password: ${POSTGRES_PASSWORD} | ||
|
||
jpa: | ||
hibernate: | ||
ddl-auto: update | ||
properties: | ||
hibernate: | ||
format_sql: true | ||
create_empty_composites: | ||
enabled: true | ||
show-sql: true | ||
dialect: org.hibernate.dialect.PostgreSQLDialect | ||
show-sql: true | ||
|
11 changes: 0 additions & 11 deletions
11
src/test/java/com/example/study_group/StudyGroupApplicationTests.java
This file was deleted.
Oops, something went wrong.