add instruction to README.md (in server module) how to start docker image with PostgreSQL
add new profile postgresql with configuration to postgresql runned by docker
change current logic: after creation database connect to new database. Then run script "deployment.sql". At the end set two flags on new template database:
UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'NAZWA_BAZY'; UPDATE pg_database SET datallowconn = FALSE WHERE datname = 'NAZWA_BAZY'; datistemplate - every user that has privilages to create database can use this database as template
datallowconn - block connections to template database
UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'NAZWA_BAZY'; UPDATE pg_database SET datallowconn = FALSE WHERE datname = 'NAZWA_BAZY';
datistemplate - every user that has privilages to create database can use this database as template datallowconn - block connections to template database