Skip to content

Source repository for docker image designed to run dictyuser database instance

License

Notifications You must be signed in to change notification settings

dictybase-docker/dictyuser-postgres

Repository files navigation

Postgresql docker image

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.

Supported tags

Additional features

Configuration files

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).

Environmental variables

For creating superuser

It inherits all of them.

For regular user

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)

Usage

It's identical to the base image, read the documentation here

Database configuration

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

Deploy

The container is intended to be deployed in kubernetes using helm. Use the corresponding chart for deployment.

About

Source repository for docker image designed to run dictyuser database instance

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages