prepare demo for docker-compose
This commit is contained in:
parent
9b12d04daa
commit
ccc609a17b
1 changed files with 5 additions and 8 deletions
|
@ -5,17 +5,14 @@ server.servlet.context-path=/
|
||||||
server.servlet.session.cookie.http-only=true
|
server.servlet.session.cookie.http-only=true
|
||||||
server.servlet.session.tracking-modes=cookie
|
server.servlet.session.tracking-modes=cookie
|
||||||
|
|
||||||
|
# database server
|
||||||
|
datastore.mariadb.server.address=seb-server-mariadb
|
||||||
|
datastore.mariadb.server.port=3306
|
||||||
|
|
||||||
# data source configuration
|
# data source configuration
|
||||||
|
|
||||||
# spring.h2.console.enabled=true
|
|
||||||
# spring.datasource.platform=h2
|
|
||||||
# spring.datasource.url=jdbc:h2:mem:demo;MODE=MySQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
|
|
||||||
# spring.datasource.driver-class-name=org.h2.Driver
|
|
||||||
|
|
||||||
spring.datasource.initialize=true
|
spring.datasource.initialize=true
|
||||||
spring.datasource.initialization-mode=always
|
spring.datasource.initialization-mode=always
|
||||||
# NOTE: try to connect to a mariadb server on a docker container named seb-server-mariadb within the same (docker)network
|
spring.datasource.url=jdbc:mariadb://${datastore.mariadb.server.address}:${datastore.mariadb.server.port}/SEBServer?useSSL=false&createDatabaseIfNotExist=true
|
||||||
spring.datasource.url=jdbc:mariadb://seb-server-mariadb:3306/SEBServer?useSSL=false&createDatabaseIfNotExist=true
|
|
||||||
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
|
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
|
||||||
spring.datasource.platform=demo
|
spring.datasource.platform=demo
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue