PostgreSQL is an object-relational Database Management System.
This is based on the SCL container image for version 9.5 at:
https://github.com/sclorg/postgresql-container
You must either specify the following environment variables:
Or the following environment variable:
Or both.
Optional settings:
docker run -v <dbroot_path>:/var/lib/pgsql:Z -p 5432:5432 -e POSTGRESQL_USER=<user> -e POSTGRESQL_PASSWORD=<password> -e POSTGRESQL_DATABASE=<database> modularitycontainers/postgresql
Substitute these placeholders with real values:
dbroot_path
- path to the database root on the host which should be mounted
on /var/lib/pgsql
in the container. Note that the postgres
user (uid 26)
needs to be able to read and write in that directory.user
, password
, database
- details with which a database and user
should be created if the database cluster directory isn't initialized yet.