Add database setup script

This commit is contained in:
Rob Watson 2022-05-17 20:40:04 +02:00
parent b824af236a
commit 9ebccc00ec
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
-- Setup the PostgreSQL instance in the dev cluster.
-- TODO: automate the execution post-cluster start.
CREATE DATABASE invidious;
CREATE ROLE kemal LOGIN ENCRYPTED PASSWORD 'testme';
GRANT ALL PRIVILEGES ON DATABASE invidious TO kemal;
CREATE DATABASE grafana;
CREATE DATABASE drone;
CREATE DATABASE gitea;