PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness.
Learn more about PostgreSQL: https://www.postgresql.org/
This Docker container makes it easy to get an instance of PostgreSQL up and running.
Based on Official Ubuntu Docker Image with some minor hack:
- Packaging by Packer Docker builder and Ansible provisioner in single layer
- Handle
ENTRYPOINT
with catatonit
For the VOLUME
directory that is used to store the repository data
(amongst other things) we recommend mounting a host directory as a data
volume,
or via a named volume if using a docker version >= 1.9.
Start PostgreSQL:
# Pull latest image
docker pull alvistack/postgres-16
# Run as detach
docker run \
-itd \
--name postgres \
--publish 5432:5432 \
--volume /var/lib/postgresql/data:/var/lib/postgresql/data \
alvistack/postgres-16
Success. PostgreSQL is now available on port 5432.
The latest
tag matches the most recent GitHub
Release of this
repository. Thus using alvistack/postgres:latest
or
alvistack/postgres
will ensure you are running the most up to date
stable version of this image.
The version tags are rolling release rebuild by Travis in weekly basis. Thus using these tags will ensure you are running the latest packages provided by the base image project.
- Code released under Apache License 2.0
- Docs released under CC BY 4.0
- Wong Hoi Sing Edison