Database passwords now optional
This commit is contained in:
@@ -10,7 +10,9 @@ services:
|
|||||||
DB_HOST: postgresql
|
DB_HOST: postgresql
|
||||||
DB_DATABASE: xwiki_db
|
DB_DATABASE: xwiki_db
|
||||||
DB_USER: xwiki_user
|
DB_USER: xwiki_user
|
||||||
|
{{- if .Values.DB_USER_PASS}}
|
||||||
DB_PASSWORD: ${DB_USER_PASS}
|
DB_PASSWORD: ${DB_USER_PASS}
|
||||||
|
{{- end}}
|
||||||
labels:
|
labels:
|
||||||
io.rancher.container.pull_image: always
|
io.rancher.container.pull_image: always
|
||||||
{{- if .Values.HOST_LABEL}}
|
{{- if .Values.HOST_LABEL}}
|
||||||
@@ -43,9 +45,13 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
POSTGRES_INITDB_ARGS: "--encoding=UTF8"
|
POSTGRES_INITDB_ARGS: "--encoding=UTF8"
|
||||||
POSTGRES_DB: xwiki_db
|
POSTGRES_DB: xwiki_db
|
||||||
|
{{- if .Values.DB_ROOT_PASS}}
|
||||||
POSTGRES_ROOT_PASSWORD: ${DB_ROOT_PASS}
|
POSTGRES_ROOT_PASSWORD: ${DB_ROOT_PASS}
|
||||||
|
{{- end}}
|
||||||
POSTGRES_USER: xwiki_user
|
POSTGRES_USER: xwiki_user
|
||||||
|
{{- if .Values.DB_USER_PASS}}
|
||||||
POSTGRES_PASSWORD: ${DB_USER_PASS}
|
POSTGRES_PASSWORD: ${DB_USER_PASS}
|
||||||
|
{{- end}}
|
||||||
labels:
|
labels:
|
||||||
io.rancher.container.pull_image: always
|
io.rancher.container.pull_image: always
|
||||||
{{- if .Values.HOST_LABEL}}
|
{{- if .Values.HOST_LABEL}}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ catalog:
|
|||||||
description: |
|
description: |
|
||||||
A secure password to be used by the "root" database user.
|
A secure password to be used by the "root" database user.
|
||||||
# default:
|
# default:
|
||||||
required: true
|
required: false
|
||||||
type: password
|
type: password
|
||||||
|
|
||||||
- variable: "DB_USER_PASS"
|
- variable: "DB_USER_PASS"
|
||||||
@@ -38,7 +38,7 @@ catalog:
|
|||||||
description: |
|
description: |
|
||||||
A secure password to be used by the "xwiki_user" database user.
|
A secure password to be used by the "xwiki_user" database user.
|
||||||
# default:
|
# default:
|
||||||
required: true
|
required: false
|
||||||
type: password
|
type: password
|
||||||
|
|
||||||
- variable: "DATA_DIR"
|
- variable: "DATA_DIR"
|
||||||
|
|||||||
Reference in New Issue
Block a user