#!/bin/bash
set -e

psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
    create user health_api with login password 'secret';
    create database health_api;
    grant all on database health_api to health_api;
EOSQL
