diff --git a/cvat/settings/production.py b/cvat/settings/production.py index b12b9f16..ea34ae38 100644 --- a/cvat/settings/production.py +++ b/cvat/settings/production.py @@ -29,5 +29,6 @@ DATABASES = { 'NAME': os.getenv('CVAT_POSTGRES_DBNAME', 'cvat'), 'USER': os.getenv('CVAT_POSTGRES_USER', 'root'), 'PASSWORD': os.getenv('CVAT_POSTGRES_PASSWORD', ''), + 'PORT': os.getenv('CVAT_POSTGRES_PORT', 5432), } } diff --git a/helm-chart/templates/cvat_backend/deployment.yml b/helm-chart/templates/cvat_backend/deployment.yml index 86cd22d2..63970493 100644 --- a/helm-chart/templates/cvat_backend/deployment.yml +++ b/helm-chart/templates/cvat_backend/deployment.yml @@ -93,6 +93,8 @@ spec: value: "{{ .Values.postgresql.external.dbname }}" - name: CVAT_POSTGRES_PASSWORD value: "{{ .Values.postgresql.external.password }}" + - name: CVAT_POSTGRES_PORT + value: "{{ .Values.postgresql.external.port }}" {{- end }} {{- with .Values.cvat.backend.additionalEnv }} {{- toYaml . | nindent 10 }}