Sign inSign up

convox/postgres

By convox

•Updated almost 8 years ago

Image
0

100K+

convox/postgres repository overview

⁠convox/postgres

PostgreSQL docker image based on Alpine Linux

This repo builds a docker image that accepts POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DATABASE env vars, in addition to the same env vars as the official postgres build⁠ but with a much smaller footprint. It achieves that by basing itself off the great alpine⁠ docker image by GliderLabs.

⁠Usage

$ docker run -e POSTGRES_PASSWORD=foo -p 5432:5432 convox/postgres
$ psql -h $(boot2docker ip) -p 5432 -U postgres
Password for user postgres: <foo>
psql (9.4.2)
Type "help" for help.

postgres=#

⁠Why?

$ docker images
REPOSITORY          TAG         VIRTUAL SIZE
convox/postgres     latest      26.98 MB
postgres            latest      213.9 MB

Parameterizing POSTGRES_USER, POSTGRES_PASSWORD and POSTGRES_DATABASE is useful for linking containers⁠ together.

⁠Build

$ make build

⁠License

Apache 2.0 © 2015 Convox, Inc.

⁠Credits

Originally forked from kiasaki/docker-alpine-postgres⁠

Tag summary

Content type

Image

Digest

sha256:493c9c4a0…

Size

12.4 MB

Last updated

almost 8 years ago

docker pull convox/postgres