Skip to content

HSLdevcom/jore4-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jore4-postgres

Custom postgresql docker images

Dockerized Postgresql databases for JORE4

jore4-postgres:mapmatching

pgRouting extension is built and installed from source. The following behavior is added to the Docker image:

Ports:

The default TCP port 5432 is used as usual.

Volumes:

The /docker-entrypoint-initdb.d volume may be used to execute additional migration scripts on top of what are used by this image. Don't be surprised however that the built-in migrations used by this image will appear in the mapped directory on your host machine as the image internally also uses the docker-entrypoint-initdb.d directory for executing its own migrations.

Environment variables:

Environment variable Example Description
SECRET_STORE_BASE_PATH /mnt/secrets-store Directory containing the docker secrets
DIGIROAD_ROUTING_DUMP_VERSION 2021-11-04 The version for digiroad routing dump that should be fetched from Azure jore4storage

All other environment variables are the same as as in pgrouting/pgrouting's base image, postgres

Note that you may also use secrets as a substitute to environment variables. E.g. postgres-user, postgres-password and postgres-db secrets are exposed as POSTGRES_USER, POSTGRES_PASSWORD and POSTGRES_DB environment variables and can be used to set up the database.

jore4-postgres:azuredbmock

Extends the original postgis/postgis docker image.

The purpose of this image is to provide a dockerised postgresql instance with a similar experience of what the initial Azure database instance is like right after being provisioned and configured by ansible. E.g. we are creating db users.

This image is not responsible for setting up the jore4 database schema, that is done by the jore4-hasura image

Ports:

The default TCP port 5432 is used as usual.

Volumes:

The /docker-entrypoint-initdb.d volume may be used to execute additional migration scripts on top of what are used by this image. Don't be surprised however that the built-in migrations used by this image will appear in the mapped directory on your host machine as the image internally also uses the docker-entrypoint-initdb.d directory for executing its own migrations.

Environment variables:

Environment variable Example Description
SECRET_STORE_BASE_PATH /mnt/secrets-store Directory containing the docker secrets

Secrets:

Secrets Example Description
db-auth-username dbauth Name of the database user for the authentication microservice
db-auth-password *** Password of the database user for the authentication microservice
db-auth-name authdb Name of the (internal) database used by the auth backend microservice
db-jore3importer-username dbjore3importer Name of the database user for the jore3 importer microservice
db-jore3importer-password *** Name of the database user for the jore3 importer microservice
db-jore3importer-name importerdb Name of the (internal) database used by the jore3 importer microservice
db-hasura-username dbhasura Name of the database user for the hasura microservice
db-hasura-password *** Password of the database user for the hasura microservice
db-hasura-name jore4db Name of the database used by the hasura microservice
db-timetables-name timetablesdb Name of the database used by the timetables module
db-tiamat-username tiamat Name of the database user for the tiamat microservice
db-tiamat-password *** Password of the database user for the tiamat microservice
db-tiamat-name stopdb Name of the database used by the tiamat microservice
db-timetables-api-username dbtimetablesapi Name of the database user for the timetables API microservice
db-timetables-api-password *** Password of the database user for the timetables API microservice

All other environment variables are the same as as in postgis/postgis's base image, postgres

Note that you may also use secrets as a substitute to environment variables. E.g. postgres-user, postgres-password and postgres-db secrets are exposed as POSTGRES_USER, POSTGRES_PASSWORD and POSTGRES_DB environment variables and can be used to set up the database.

About

Custom postgresql docker images

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published