HUB
Sign inSign up

travix/postgres

By travix

•Updated over 8 years ago

A container to run the PostgreSQL database.

Image
0

1.1K

travix/postgres repository overview

⁠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

DirectoryDescriptionImportance
/var/lib/postgresql/data/pgdataThis directory holds the data stored in the database; the path is the same as passed with environment variable PGDATAAbsolutely needs to be mounted
Tag summary
Recent tags
Content type
Image
Digest
Size
100.6 MB
Last updated
over 8 years ago
docker pull travix/postgres:latest