Skip to content

Commit

Permalink
refactor: redis 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kanguk01 committed Oct 23, 2024
1 parent 8c3d759 commit 2917086
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
sudo docker stop splanet || true
sudo docker rm splanet || true
sudo docker run -d --name splanet \
--network splanet \
-e MYSQL_PROD_URL=${{ secrets.MYSQL_PROD_URL }} \
-e MYSQL_PROD_USER=${{ secrets.MYSQL_PROD_USER }} \
-e MYSQL_PROD_PASSWORD=${{ secrets.MYSQL_PROD_PASSWORD }} \
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
spring:
data:
redis:
host: localhost
port: 6379
datasource:
url: jdbc:mysql://localhost:3306/${MYSQL_DATABASE}
username: ${MYSQL_USER}
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
spring:
data:
redis:
host: redis
port: 6379
datasource:
url: jdbc:mysql://${MYSQL_PROD_URL}:3306/${MYSQL_DATABASE}
username: ${MYSQL_PROD_USER}
Expand Down
5 changes: 1 addition & 4 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ spring:
hibernate:
dialect: org.hibernate.dialect.MySQLDialect
format_sql: true
data:
redis:
host: localhost
port: 6379

security:
jwt:
secret: ${JWT_SECRET}
Expand Down

0 comments on commit 2917086

Please sign in to comment.