Skip to content

alvistack/docker-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c4a2f4a · Feb 15, 2025
Jan 1, 2025
Jan 1, 2025
Jan 1, 2025
Jan 14, 2025
Feb 11, 2025
Feb 12, 2025
Jan 1, 2025
Jan 1, 2025
Sep 24, 2022
Jan 24, 2025
May 6, 2022
Jan 1, 2025
Jan 14, 2025
Jan 1, 2025
Nov 19, 2024
Nov 19, 2024
Sep 21, 2021
Jan 1, 2025
Jan 1, 2025
Jan 1, 2025
Jan 1, 2025

Repository files navigation

Docker Image Packaging for PostgreSQL

AlviStack

GitLab pipeline status GitHub tag GitHub license Docker Pulls

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/

Supported Tags and Respective Packer Template Links

Overview

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

Quick Start

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.

Versioning

alvistack/postgres:latest

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.

alvistack/postgres:<version>

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.

License

Author Information