ckan/postgresql/docker-entrypoint-initdb.d/20_create_datastore.sql
Brett d621fb62df Initial Security updates
- Update database user names and passwords
- The CKAN database is created with a new SQL script in the docker-entrypoint-initdb.d/ directory
- Remove host port for CKAN container
- now has a front-end network for NGINX and a back-end network for the rest of the containers, plus NGINX
2023-05-31 14:26:56 +02:00

5 lines
235 B
SQL
Executable File

\set datastore_ro_password '\'' `echo $DATASTORE_READONLY_PASSWORD` '\''
CREATE ROLE datastore_ro NOSUPERUSER NOCREATEDB NOCREATEROLE LOGIN PASSWORD :datastore_ro_password;
CREATE DATABASE datastore OWNER ckandbuser ENCODING 'utf-8';