Some more adaptation on DB_HOST and DB_PORT usage
When the DB is exposed, you actually have to go through the exposed port, as the internal network port is not available anymore.
This commit is contained in:
@@ -143,8 +143,8 @@ services:
|
||||
db-ui:
|
||||
image: ${DB_UI_IMAGE}${DB_UI_VERSION}
|
||||
environment:
|
||||
POSTGRES_HOST: db
|
||||
POSTGRES_PORT: 5432
|
||||
POSTGRES_HOST: ${DB_HOST}
|
||||
POSTGRES_PORT: ${DB_PORT}
|
||||
POSTGRES_USER: ${DB_USER_ADMIN}
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD_ADMIN}
|
||||
POSTGRES_DB: ${DB_NAME2}
|
||||
@@ -203,18 +203,18 @@ services:
|
||||
backend:
|
||||
image: ${PORTAL_BACKEND_IMAGE}${PORTAL_BACKEND_VERSION}
|
||||
environment:
|
||||
PORTAL_DB_URL: jdbc:postgresql://db:5432/${DB_NAME4}
|
||||
PORTAL_DB_SERVER: db:5432
|
||||
PORTAL_DB_URL: jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME4}
|
||||
PORTAL_DB_SERVER: ${DB_HOST}:${DB_PORT}
|
||||
PORTAL_DB_USER: ${DB_USER4}
|
||||
PORTAL_DB_PASSWORD: ${DB_PASSWORD4}
|
||||
PORTAL_DB_SCHEMA: public # Stable Config
|
||||
META_DB_URL: jdbc:postgresql://db:5432/${DB_NAME1}
|
||||
META_DB_SERVER: db:5432
|
||||
META_DB_URL: jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME1}
|
||||
META_DB_SERVER: ${DB_HOST}:${DB_PORT}
|
||||
META_DB_USER: ${DB_USER1}
|
||||
META_DB_PASSWORD: ${DB_PASSWORD1}
|
||||
META_DB_SCHEMA: public # Stable Config
|
||||
FEATURES_DB_URL: jdbc:postgresql://db:5432/${DB_NAME2}
|
||||
FEATURES_DB_SERVER: db:5432
|
||||
FEATURES_DB_URL: jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME2}
|
||||
FEATURES_DB_SERVER: ${DB_HOST}:${DB_PORT}
|
||||
FEATURES_DB_USER: ${DB_USER2}
|
||||
FEATURES_DB_PASSWORD: ${DB_PASSWORD2}
|
||||
FEATURES_DB_SCHEMA: public # Stable Config
|
||||
|
||||
@@ -15,8 +15,10 @@
|
||||
# Service Parameters
|
||||
: ${DB_IMAGE:="hbpmip/postgresraw"}
|
||||
: ${DB_VERSION:=":v1.3"}
|
||||
: ${DB_HOST:="db-published"} # External hostname, if exposed
|
||||
: ${DB_PORT:="31432"} # External port, if exposed
|
||||
# If you want to expose the DB, you have to adapt the values below, as well
|
||||
# as uncomment the port section in the docker-compose.yml file.
|
||||
: ${DB_HOST:="db"} # Internal hostname, if NOT exposed, defined in docker-compose.yml
|
||||
: ${DB_PORT:="5432"} # Internal port, if NOT exposed, default PostgreSQL port
|
||||
: ${DB_DATA:="${PWD}/postgres"}
|
||||
: ${DB_DATASETS:="${PWD}/datasets"}
|
||||
: ${DB_USER_ADMIN:="postgres"}
|
||||
|
||||
@@ -104,12 +104,12 @@ db {
|
||||
woken {
|
||||
jdbc_driver = "org.postgresql.Driver"
|
||||
jdbc_jar_path = "/usr/lib/R/libraries/postgresql-9.4-1201.jdbc41.jar"
|
||||
jdbc_url = "jdbc:postgresql://db:5432/DB_NAME3"
|
||||
jdbc_url = "jdbc:postgresql://DB_HOST:DB_PORT/DB_NAME3"
|
||||
jdbc_user = "DB_USER3"
|
||||
jdbc_password = "DB_PASSWORD3"
|
||||
|
||||
host = "db"
|
||||
port = 5432
|
||||
host = "DB_HOST"
|
||||
port = DB_PORT
|
||||
user = "DB_USER3"
|
||||
password = "DB_PASSWORD3"
|
||||
}
|
||||
@@ -117,12 +117,12 @@ db {
|
||||
features {
|
||||
jdbc_driver = "org.postgresql.Driver"
|
||||
jdbc_jar_path = "/usr/lib/R/libraries/postgresql-9.4-1201.jdbc41.jar"
|
||||
jdbc_url = "jdbc:postgresql://db:5432/DB_NAME2"
|
||||
jdbc_url = "jdbc:postgresql://DB_HOST:DB_PORT/DB_NAME2"
|
||||
jdbc_user = "DB_USER2"
|
||||
jdbc_password = "DB_PASSWORD2"
|
||||
|
||||
host = "db"
|
||||
port = 5432
|
||||
host = "DB_HOST"
|
||||
port = DB_PORT
|
||||
user = "DB_USER2"
|
||||
password = "DB_PASSWORD2"
|
||||
}
|
||||
@@ -130,12 +130,12 @@ db {
|
||||
metadata {
|
||||
jdbc_driver = "org.postgresql.Driver"
|
||||
jdbc_jar_path = "postgresql-9.4-1201.jdbc41.jar"
|
||||
jdbc_url = "jdbc:postgresql://db:5432/DB_NAME1"
|
||||
jdbc_url = "jdbc:postgresql://DB_HOST:DB_PORT/DB_NAME1"
|
||||
jdbc_user = "DB_USER1"
|
||||
jdbc_password = "DB_PASSWORD1"
|
||||
|
||||
host = "db"
|
||||
port = 5432
|
||||
host = "DB_HOST"
|
||||
port = DB_PORT
|
||||
user = "DB_USER1"
|
||||
password = "DB_PASSWORD1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user