global: postgresql: auth: postgresPassword: "secret" username: "artifactory" password: "artifactory" database: "artifactory" primary: persistence: enabled: false initdb: user: "postgres" password: "secret" scripts: initdb.sql: |- CREATE USER artifactory WITH PASSWORD 'artifactory'; CREATE DATABASE artifactory WITH OWNER=artifactory ENCODING='UTF8'; GRANT ALL PRIVILEGES ON DATABASE artifactory TO artifactory; # data-load.sh: |- # #!/bin/bash # echo "creating db" # psql -U postgres -P 'P0stgr3sql' -c postgres "CREATE USER artifactory WITH PASSWORD 'artifactory'"; # psql -U postgres -P 'P0stgr3sql' -c postgres "CREATE DATABASE artifactory WITH OWNER=artifactory ENCODING='UTF8'"; # psql -U postgres -P 'P0stgr3sql' -c postgres "GRANT ALL PRIVILEGES ON DATABASE artifactory TO artifactory"; # echo "Done!!!" volumePermissions: enabled: false securityContext: runAsUser: "auto" securityContext: enabled: false shmVolume: chmod: enabled: false containerSecurityContext: enabled: false