This container inherits from travix/base:latest and adds the following packages
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
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 travix/postgres:latest