Sign inSign up

pixailz/postgresql

By pixailz

•Updated about 2 years ago

simple and configurable PostgreSQL server, based on Alpine Linux.

Image
Databases & storage
0

319

pixailz/postgresql repository overview

⁠PostgreSQL Docker Image

This Docker image provides a simple and configurable PostgreSQL server, based on Alpine Linux. It is designed to be lightweight and easy to use, with support for custom configurations through environment variables.

CI for a PostgreSQL Docker image

⁠Tags

The default name for the image is postgresql, but it is also available under the following tags

TagDescription
edgeThis tag is based on alpine:edge. It is suitable for users who want the latest features and are willing to accept the risk of edge releases.
latestThis tag is based on alpine:latest. It offers a more stable environment compared to the edge version.

⁠Quick Start

⁠Building the Image

To build the image yourself, you can use the provided Makefile⁠:

make TARGET=latest
⁠Running the Image

Replace latest with edge to build the edge version.

To run the PostgreSQL server:

docker run --rm -e PGUSER=myuser -e PGPASS=mypass -e PGDB=mydb postgresql:latest

This command starts a PostgreSQL server a database named mydb, a user myuser, and a password mypass.

⁠Environment Variables

NameDescriptionDefault
PGDATAThe root directory for PostgreSQL data./var/lib/postgresql
PGDBThe default database name.db
PGUSERThe default user name.postgres
PGPASSThe password for the default user.pass
PGPORTThe port PostgreSQL listens on.5432
PGLADDRThe listen addresses for PostgreSQL.*
PGHBAThe host-based authentication configuration.host all all all md5
DOCKER_DEBUGSet to any value to enable debugging output.

⁠Customization

You can customize the PostgreSQL configuration by modifying the entrypoint⁠ script or by providing your own configuration files and mounting them into the container.

For more advanced usage and customization, refer to the official PostgreSQL documentation.

Tag summary

Content type

Image

Digest

sha256:54db32adf…

Size

16.2 MB

Last updated

about 2 years ago

docker pull pixailz/postgresql