set docker
This commit is contained in:
9
docker/postgres-init/postgres.init.sh
Executable file
9
docker/postgres-init/postgres.init.sh
Executable 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
|
Reference in New Issue
Block a user