Public | Automated Build

Last pushed: a month ago
Short Description
A container to run the PostgreSQL database.
Full Description

travix/postgres

This container inherits from travix/base:latest and adds the following packages

  • postgres

Usage

To run this docker container use the following command

docker run -d \
    -e POSTGRES_USER=postgres \
    -e POSTGRES_PASSWORD=mysecretpassword \
    -e PGDATA=/var/lib/postgresql/data/pgdata \
    travix/postgres:latest

Mounting volumes

In order to keep data over restarts you can mount the following directories

Directory Description Importance
/var/lib/postgresql/data/pgdata This directory holds the data stored in the database; the path is the same as passed with environment variable PGDATA Absolutely needs to be mounted
Docker Pull Command
Owner
travix
Source Repository

Comments (0)