feat(database): add banking database and update mount path
adds a new database named banking to the PostgreSQL initialization script and modifies the mount path for PostgreSQL data to improve compatibility with volume management practices.
This commit is contained in:
+2
-1
@@ -19,6 +19,7 @@ data:
|
|||||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
||||||
CREATE DATABASE schemas WITH OWNER postgres ENCODING utf8;
|
CREATE DATABASE schemas WITH OWNER postgres ENCODING utf8;
|
||||||
CREATE DATABASE accounting WITH OWNER postgres ENCODING utf8;
|
CREATE DATABASE accounting WITH OWNER postgres ENCODING utf8;
|
||||||
|
CREATE DATABASE banking WITH OWNER postgres ENCODING utf8;
|
||||||
CREATE DATABASE authz WITH OWNER postgres ENCODING utf8;
|
CREATE DATABASE authz WITH OWNER postgres ENCODING utf8;
|
||||||
CREATE DATABASE company WITH OWNER postgres ENCODING utf8;
|
CREATE DATABASE company WITH OWNER postgres ENCODING utf8;
|
||||||
CREATE DATABASE consumer WITH OWNER postgres ENCODING utf8;
|
CREATE DATABASE consumer WITH OWNER postgres ENCODING utf8;
|
||||||
@@ -78,7 +79,7 @@ spec:
|
|||||||
value: --locale-provider=icu --icu-locale=sv-SE
|
value: --locale-provider=icu --icu-locale=sv-SE
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /var/lib/postgresql/data
|
mountPath: /var/lib/postgresql
|
||||||
- mountPath: /docker-entrypoint-initdb.d/initdb.sh
|
- mountPath: /docker-entrypoint-initdb.d/initdb.sh
|
||||||
name: initdb
|
name: initdb
|
||||||
subPath: initdb.sh
|
subPath: initdb.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user