diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 37b1cdf7..2d024340 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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 }} \ diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml index 44eb850a..df8a51a6 100644 --- a/src/main/resources/application-local.yml +++ b/src/main/resources/application-local.yml @@ -1,4 +1,8 @@ spring: + data: + redis: + host: localhost + port: 6379 datasource: url: jdbc:mysql://localhost:3306/${MYSQL_DATABASE} username: ${MYSQL_USER} diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 0f99cac2..2d08afe7 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -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} diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 30a73b78..41c7757d 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -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}