Skip to content

Instantly share code, notes, and snippets.

@raccoonyy
Created August 15, 2019 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save raccoonyy/c365c5a17e24dc49ffc1cb8726c267c7 to your computer and use it in GitHub Desktop.
Save raccoonyy/c365c5a17e24dc49ffc1cb8726c267c7 to your computer and use it in GitHub Desktop.
postgres-docker
$ docker run -d \
--name db \
-p 5432:5432 \
-e POSTGRES_DB=djangodb \
-e POSTGRES_USER=django \
-e POSTGRES_PASSWORD=djangopassword \
-v $(pwd)/data:/var/lib/postgresql/data \
postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment