Sign inSign up

fernandorejonbarrera/postgres-init

By fernandorejonbarrera

•Updated about 7 years ago

Image
0

396

fernandorejonbarrera/postgres-init repository overview

⁠postgres-init

Postgres 9.6 docker image with support for initialization SQL command

⁠Usage

Sames as https://hub.docker.com/_/postgres⁠ but adds an additional environment variable POSTGRES_CMDS:

docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword \
-e POSTGRES_CMDS='CREATE DATABASE \"mydb\"; \n CREATE DATABASE \"mydb2\";' \
-d postgres

Tag summary

Content type

Image

Digest

Size

14.8 MB

Last updated

about 7 years ago

docker pull fernandorejonbarrera/postgres-init