Files
homelab/k8s/ddb/init-users.sql
T

12 lines
460 B
SQL
Raw Normal View History

-- Database initialization for homelab applications
-- Idempotent: safe to re-run
-- Required environment variables:
-- AUTHENTIK_PG_PASSWORD
-- STORY_CRATER_PG_PASSWORD
CREATE ROLE IF NOT EXISTS authentik WITH LOGIN PASSWORD :'authentik_password';
CREATE DATABASE IF NOT EXISTS authentik OWNER authentik;
CREATE ROLE IF NOT EXISTS story_crater WITH LOGIN PASSWORD :'story_crater_password';
CREATE DATABASE IF NOT EXISTS story_crater OWNER story_crater;