This is a source repository for docker image designed to
run dictyuser
database instance in docker container. It is based on the
generic alpine postgresql image.
The documentation of base docker image is also applicable here.
Bunch of modular configuration files are provided for fined grained database
configurations The following conf
files are provided.
01resource.conf
02wal.conf
03query.conf
04.log.conf
05vaccum.conf
They get sourced in order by the postgresql.conf
file provided by the image.
The configuration file is kept in /etc/postgresql/postgresql.conf
and can be
use by providing an option on the docker run line(see below for instructions).
It inherits all of them.
Provide a set of environmental variables to create a regular(not superuser) user, password and database during the initialization process. The following environmental variables should be used setting them up...
DICTYUSER_USER - dictyuser(default)
DICTYUSER_PASSWORD - dictyuserpass(default)
DICTYUSER_DB - dictyuser(default)
It's identical to the base image, read the documentation here
To use the provided custom configuration(/etc/postgresql/postgresql.conf
) run the image with the --config-file
option
docker run --rm -d dictybase/postgres postgres -c '--config-file=/etc/postgresql/postgresql.conf'
All other options available in the .conf
file can be set by passing the -c
option to the postgres
daemon.
docker run -d --name some-postgres postgres -c 'shared_buffers=256MB' -c 'max_connections=200'
For details look here
The container is intended to be deployed in kubernetes using helm. Use the corresponding chart for deployment.