# build dockerfile
$ docker build -f postgres/Dockerfile -t postgres-custom .
or
# build dockerfile
$ docker build -f postgres/Dockerfile-hasura-pg -t postgres-custom .
# exec run.sh
$ ./script/run.sh --help
fill-pg
sets up a bare database without indexes and query functions. After fill-pg
is caught up to the chain, stop it then run init.sql
in this repository's source directory. e.g. docker exec -it postgres psql --username=postgres -f /var/lib/postgresql/data/pgdata/init.sql
.
# stop fill-pg
$ docker stop fill-pg
# run init.sql
$ docker exec -it postgres psql --username=postgres -f /var/lib/postgresql/data/pgdata/init.sql