brewman-docker/postgres.sh

3 lines
152 B
Bash

docker volume create --name pgdata
docker run --name some-postgres -v pgdata:/var/lib/postgresql/data -e POSTGRES_PASSWORD=mysecretpassword -d postgres