Fix deploy scripts
parent
9b6f26ba0b
commit
be67fcc9ec
@ -1,14 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
PGDATA=${PGDATA:-"$(pwd)/data/dev"}
|
PGDATA=${PGDATA:-"$(pwd)/data/dev"}
|
||||||
POSTGRES_USER=${POSTGRES_USER:-"dev"}
|
POSTGRES_USER=${POSTGRES_USER:-"dev"}
|
||||||
POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-"dev"}
|
POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-"dev"}
|
||||||
|
|
||||||
docker run \
|
docker run \
|
||||||
--name darklimericks-db \
|
--name db \
|
||||||
-e POSTGRES_PASSWORD=$POSTGRES_PASSWORD \
|
-e POSTGRES_PASSWORD=$POSTGRES_PASSWORD \
|
||||||
-e POSTGRES_USER=$POSTGRES_USER \
|
-e POSTGRES_USER=$POSTGRES_USER \
|
||||||
-v $PGDATA:/var/lib/postgresql/data \
|
-v $PGDATA:/var/lib/postgresql/data \
|
||||||
-p 127.0.0.1:5432:5432 \
|
-p 5432:5432 \
|
||||||
darklimericks-db
|
darklimericks-db
|
||||||
|
Loading…
Reference in New Issue