Skip to content

Instantly share code, notes, and snippets.

@jkeam
Last active October 1, 2021 02:05
Show Gist options
  • Save jkeam/8b01553d5f33f271e5b8053ea476f5b7 to your computer and use it in GitHub Desktop.
Save jkeam/8b01553d5f33f271e5b8053ea476f5b7 to your computer and use it in GitHub Desktop.
Start Postgres DB in Docker
#!/bin/bash
docker run --rm --name postgres -p 5432:5432 -v /tmp/app/db:/var/lib/postgresql/data -e POSTGRES_PASSWORD=root -e POSTGRES_USER=postgres -e PGDATA=/var/lib/postgresql/data/pgdata postgres:bullseye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment