-
Notifications
You must be signed in to change notification settings - Fork 1
/
init-postgresql.sql
37 lines (31 loc) · 1.24 KB
/
init-postgresql.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
-- Crowd
CREATE USER crowd PASSWORD 'crowd';
CREATE DATABASE crowd;
GRANT ALL PRIVILEGES ON DATABASE crowd TO crowd;
-- JIRA
-- https://confluence.atlassian.com/adminjiraserver072/connecting-jira-applications-to-postgresql-828787559.html
CREATE USER jira PASSWORD 'jira';
CREATE DATABASE jira WITH ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;
GRANT ALL PRIVILEGES ON DATABASE jira TO jira;
-- Confluence
-- https://confluence.atlassian.com/doc/database-setup-for-postgresql-173244522.html
CREATE USER confluence PASSWORD 'confluence';
CREATE DATABASE confluence;
GRANT ALL PRIVILEGES ON DATABASE confluence TO confluence;
-- GitBucket
CREATE USER gitbucket PASSWORD 'gitbucket';
CREATE DATABASE gitbucket;
GRANT ALL PRIVILEGES ON DATABASE gitbucket TO gitbucket;
-- SonarQube
CREATE USER sonarqube PASSWORD 'sonarqube';
CREATE DATABASE sonarqube;
GRANT ALL PRIVILEGES ON DATABASE sonarqube TO sonarqube;
-- Mattermost
-- https://github.com/mattermost/mattermost-docker
CREATE USER mattermost PASSWORD 'mattermost';
CREATE DATABASE mattermost;
GRANT ALL PRIVILEGES ON DATABASE mattermost TO mattermost;
-- ownCloud
CREATE USER owncloud PASSWORD 'owncloud';
CREATE DATABASE owncloud;
GRANT ALL PRIVILEGES ON DATABASE owncloud TO owncloud;