From d5019d3e24390eac387b370390e73d010bda08e9 Mon Sep 17 00:00:00 2001 From: Ihyeon Shin <80164690+2hy2on@users.noreply.github.com> Date: Thu, 4 Jul 2024 23:19:18 +0900 Subject: [PATCH] hofix: application.yml --- src/main/resources/application.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index e11f23a..bc7bf48 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,9 +1,9 @@ spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/spot_db?useSSL=false&allowPublicKeyRetrieval=true - username: root - password: 1226 + url: jdbc:mysql://mysql_db:3306/${MYSQL_DATABASE}?useSSL=false&allowPublicKeyRetrieval=true + username: ${MYSQL_USER} + password: ${MYSQL_PASSWORD} jpa: hibernate: @@ -12,4 +12,4 @@ spring: physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl show-sql: true properties: - hibernate.dialect: org.hibernate.dialect.MySQLDialect \ No newline at end of file + hibernate.dialect: org.hibernate.dialect.MySQLDialect