Sign inSign up

bwhanesthesia1/postgres

By bwhanesthesia1

•Updated almost 11 years ago

postgres db for development

Image
1

1.2K

bwhanesthesia1/postgres repository overview

⁠docker_postgres

Postgres 9.4

https://github.com/bwhanes/docker_postgres⁠

Can be used for development environment for db server

⁠ENV Variables
⁠POSTGRES_PASSWORD

This environment variable is recommended for you to use the PostgreSQL image. This environment variable sets the superuser password for PostgreSQL

⁠POSTGRES_USER

This optional environment variable is used in conjunction with POSTGRES_PASSWORD to set a user and its password. This variable will create the specified user with superuser power and a database with the same name. If it is not specified, then the default user of postgres will be used

⁠DB_NAME

The name of the database to create on container initialization. The is will also generate databases "${DB_NAME}_dev" and "${DB_NAME}_test" for Rails setup.

⁠DB_SCHEMA

The schema name to create for running the migrations in. This will be created in each DB.

⁠DB_DEV_NAME

This is optional parameter. If not set a development database will be created with the name "${DB_NAME}_dev"

⁠DB_TEST_NAME

This is optional parameter. If not set a test database will be created with the name "${DB_NAME}_test"

For each database an additional schema namedd shared_extensions is creaed with the extension uuid-ossp installed. This makes it available to all Rails apps that include the schema shared_extensions in the search_path.

Tag summary

Content type

Image

Digest

sha256:2eb18d07d…

Size

95.6 MB

Last updated

almost 11 years ago

docker pull bwhanesthesia1/postgres