-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: Integrating Configuration Files and Docker-Compose #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
cca0166
refactor: Integrating Configuration Files and Docker-Compose
08166 3a434df
refactor: clean up .env.example by removing unused Redis configuration
08166 d33a74c
chore: add application.yml configuration file for local development e…
08166 c6f70b5
chore: add application configuration files for development and local …
08166 1e88a1a
Refactoring: application-local to productionConfiguation
08166 c601cbb
test: add database connection test to ProfilesTest
08166 919a9ee
refactor: remove unused profile test files and clean up application.y…
08166 60407b0
refactor: remove commented-out application header from application.yml
08166 5936c08
refactor: removing common profile
08166 2c48ae6
chore: Change class name for profile
08166 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # Database Configuration | ||
| DB_HOST= | ||
| DB_PORT= | ||
| DB_NAME= | ||
| DB_USERNAME= | ||
| DB_PASSWORD= | ||
|
|
||
| # Spring Profile | ||
| SPRING_PROFILES_ACTIVE= | ||
|
|
||
| # OAuth - Kakao | ||
| KAKAO_CLIENT_ID= | ||
| KAKAO_CLIENT_SECRET= | ||
| KAKAO_REDIRECT_URI= | ||
| KAKAO_NATIVE_CLIENT_ID= | ||
|
|
||
| # OAuth - Google | ||
| GOOGLE_CLIENT_ID= | ||
| GOOGLE_CLIENT_SECRET= | ||
| GOOGLE_REDIRECT_URI= | ||
| GOOGLE_AOD_CLIENT_ID= | ||
|
|
||
| # JWT | ||
| JWT_ISSUER= | ||
| JWT_SECRET= | ||
| JWT_ACCESS_EXPIRATION= | ||
| JWT_REFRESH_EXPIRATION= | ||
|
|
||
| # AWS S3 Configuration | ||
| AWS_S3_BUCKET_NAME= | ||
| AWS_S3_REGION= | ||
| AWS_ACCESS_KEY_ID= | ||
| AWS_SECRET_ACCESS_KEY= | ||
| AWS_CLOUDFRONT_DOMAIN= | ||
| RESIZE_SECRET_KEY= | ||
|
|
||
| # Public Data Service Key | ||
| K_CULTURAL_INFO_CENTER_KEY= | ||
|
|
||
| # FCM | ||
| FIREBASE_CONFIG_PATH= |
This file contains hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,50 @@ | ||
| version: "3.8" | ||
|
|
||
| services: | ||
| app: | ||
| build: | ||
| context: . | ||
| dockerfile: docker/Dockerfile | ||
| db: | ||
| image: mysql:8.4 | ||
| container_name: db | ||
| platform: linux/amd64 | ||
| environment: | ||
| MYSQL_USER: artrip | ||
| MYSQL_ROOT_PASSWORD: artrip1! | ||
| MYSQL_DATABASE: artrip | ||
| MYSQL_PASSWORD: artrip1! | ||
| ports: | ||
| - "33069:3306" | ||
| volumes: | ||
| - ./db/data:/var/lib/mysql | ||
| - ./db/conf:/etc/mysql/conf.d | ||
|
|
||
| redis: | ||
| image: redis:7.2 | ||
| container_name: redis | ||
| restart: always | ||
| ports: | ||
| - "63799:6379" | ||
| volumes: | ||
| - redis-data:/data | ||
|
|
||
| elasticsearch: | ||
| image: docker.elastic.co/elasticsearch/elasticsearch:8.11.0 | ||
| container_name: elastic | ||
| environment: | ||
| - discovery.type=single-node | ||
| - xpack.security.enabled=false | ||
| - xpack.security.http.ssl.enabled=false | ||
| - ES_JAVA_OPTS=-Xms1g -Xmx1g | ||
| ports: | ||
| - "9200:9200" | ||
| - "9300:9300" | ||
| volumes: | ||
| - ./elasticsearch/data:/usr/share/elasticsearch/data | ||
| healthcheck: | ||
| test: [ "CMD", "curl", "-f", "http://localhost:9200/_cluster/health" ] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 5 | ||
| start_period: 30s | ||
|
|
||
|
|
||
| volumes: | ||
| redis-data: | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ElasticSearch를 사용하는 기능을 대체하면 이 부분은 지우면 될 것 같아요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 한번에 다 수정하기에는 양이 많아서 나눠서 진행 하겠습니다.