#!/bin/bash set -e psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL CREATE USER user_service; CREATE DATABASE user_service; ALTER USER user_service WITH SUPERUSER; ALTER USER user_service WITH PASSWORD 'user_service'; EOSQL