Skip to content
Snippets Groups Projects
Commit 3df7d82b authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

add env vars to configure DB schemas

parent f80bcec6
No related branches found
No related tags found
No related merge requests found
......@@ -10,16 +10,19 @@ You need to configure a few things using some environment variables.
Environment variables:
* PORTAL_DB_URL: JDBC URL to connect to the portal database, for example "jdbc:postgresql://db:5432/portal"
* PORTAL_DB_SCHEMA: Database schema, default value is "public"
* PORTAL_DB_SERVER: optional, address of the portal database server, for example DB_SERVER="db:5432". Used to wait for the database to be up and running.
* PORTAL_DB_USER: User to use when connecting to the portal database
* PORTAL_DB_PASSWORD: Password to use when connecting to the portal database
* META_DB_URL: JDBC URL to connect to the metadata database
* META_DB_SCHEMA: Database schema, default value is "public"
* META_DB_SERVER: optional, address of the metadata database server. Used to wait for the database to be up and running.
* META_DB_USER: User to use when connecting to the metadata database
* META_DB_PASSWORD: Password to use when connecting to the metadata database
* SCIENCE_DB_URL: JDBC URL to connect to the science database
* SCIENCE_DB_SCHEMA: Database schema, default value is "public"
* SCIENCE_DB_SERVER: optional, address of the science database server. Used to wait for the database to be up and running.
* SCIENCE_DB_USER: User to use when connecting to the science database
* SCIENCE_DB_PASSWORD: Password to use when connecting to the science database
......
......@@ -4,16 +4,19 @@
spring:
portalDatasource:
url: {{ default .Env.PORTAL_DB_URL "jdbc:postgresql://172.22.0.1:5432/portal" }}
schema: {{ default .Env.PORTAL_DB_SCHEMA "public" }}
username: {{ default .Env.PORTAL_DB_USER "postgres" }}
password: {{ .Env.PORTAL_DB_PASSWORD }}
driver-class-name: org.postgresql.Driver
metaDatasource:
url: {{ default .Env.META_DB_URL "jdbc:postgresql://172.22.0.1:5432/meta" }}
schema: {{ default .Env.META_DB_SCHEMA "public" }}
username: {{ default .Env.META_DB_USER "postgres" }}
password: {{ .Env.META_DB_PASSWORD }}
driver-class-name: org.postgresql.Driver
scienceDatasource:
url: {{ default .Env.SCIENCE_DB_URL "jdbc:postgresql://172.22.0.1:5433/science" }}
schema: {{ default .Env.SCIENCE_DB_SCHEMA "public" }}
username: {{ default .Env.SCIENCE_DB_USER "postgres" }}
password: {{ .Env.SCIENCE_DB_PASSWORD }}
driver-class-name: org.postgresql.Driver
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment