Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
docker application.properties prfile settings
>> application.properties <<
spring.profiles.active=container
>> application-local.properties <<
# Local
#MySQL configuration
db_driver=com.mysql.jdbc.Driver
db_url=jdbc:mysql://localhost:3306/epidemics
db_username=root
db_password=epidemics
db_platform=epidemics
db_initialize=false
#Spring DB configuration
spring.datasource.driver=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/epidemics?useSSL=false
spring.datasource.username=epidemics
spring.datasource.password=epidemics
>> application-container.properties <<
# Container
#MySQL configuration
db_driver=com.mysql.jdbc.Driver
db_url=jdbc:mysql://${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME}
db_username=${DATABASE_USER}
db_password=${DATABASE_PASSWORD}
db_platform=mysql
db_initialize=true
#Spring DB configuration
spring.datasource.driver=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME}?useSSL=false
spring.datasource.username=${DATABASE_USER}
spring.datasource.password=${DATABASE_PASSWORD}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment