Database passwords now optional

This commit is contained in:
William Miceli
2019-05-05 21:13:42 -04:00
parent 48a1d86d6f
commit ea02dfb0e7
2 changed files with 8 additions and 2 deletions

View File

@@ -10,7 +10,9 @@ services:
DB_HOST: postgresql
DB_DATABASE: xwiki_db
DB_USER: xwiki_user
{{- if .Values.DB_USER_PASS}}
DB_PASSWORD: ${DB_USER_PASS}
{{- end}}
labels:
io.rancher.container.pull_image: always
{{- if .Values.HOST_LABEL}}
@@ -43,9 +45,13 @@ services:
environment:
POSTGRES_INITDB_ARGS: "--encoding=UTF8"
POSTGRES_DB: xwiki_db
{{- if .Values.DB_ROOT_PASS}}
POSTGRES_ROOT_PASSWORD: ${DB_ROOT_PASS}
{{- end}}
POSTGRES_USER: xwiki_user
{{- if .Values.DB_USER_PASS}}
POSTGRES_PASSWORD: ${DB_USER_PASS}
{{- end}}
labels:
io.rancher.container.pull_image: always
{{- if .Values.HOST_LABEL}}