set docker

This commit is contained in:
2020-01-20 11:34:16 +01:00
parent 47d5ed77d5
commit bcd17e1038
8 changed files with 102 additions and 5 deletions

View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" -h localhost <<-EOSQL
CREATE ROLE risotto WITH LOGIN PASSWORD 'risotto';
CREATE DATABASE risotto;
GRANT ALL ON DATABASE risotto TO risotto;
CREATE EXTENSION hstore;
EOSQL