Skip to content

Instantly share code, notes, and snippets.

@flaugabriel
Created May 3, 2019 03:29
Show Gist options
  • Save flaugabriel/de3de89b4e458e605bd88c9e7d67acb1 to your computer and use it in GitHub Desktop.
Save flaugabriel/de3de89b4e458e605bd88c9e7d67acb1 to your computer and use it in GitHub Desktop.
sudo docker run -d \
--name=postgres \
-v /etc/localtime:/etc/localtime:ro \
-e POSTGRES_USER=root \
-e POSTGRES_PASSWORD=root \
-v /storage/pgdata:/var/lib/postgresql/data \
-p 5432:5432 \
--restart=always \
postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment