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