You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
369 B
Bash
15 lines
369 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
PGDATA=${PGDATA:-"$(pwd)/data/dev"}
|
|
POSTGRES_USER=${POSTGRES_USER:-"dev"}
|
|
POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-"dev"}
|
|
|
|
docker run \
|
|
--name darklimericks-db \
|
|
-e POSTGRES_PASSWORD=$POSTGRES_PASSWORD \
|
|
-e POSTGRES_USER=$POSTGRES_USER \
|
|
-v $PGDATA:/var/lib/postgresql/data \
|
|
-p 5432:5432 \
|
|
darklimericks-db
|