Skip to content

[BUG] Setting the PQ database environment variable does not take effect #503

@harveyff

Description

@harveyff

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Hi guys, thanks for your great work.

I am deploying nextcloud on k8s. I followed the official example and specified

POSTGRES_HOST
POSTGRES_USER
POSTGRES_DB
POSTGRES_PASSWORD

as environment variables, but it does not seem to take effect. It seems that the default is SQLite database when initialized. Does it not support these environment variables?

Expected Behavior

I expect to use the external PQ database I specify by default when initializing

Steps To Reproduce

   env:
            - name: POSTGRES_PASSWORD
              value: "{{ .Values.postgres.password }}"
            - name: POSTGRES_DB
              value: "{{ .Values.postgres.databases.nextcloud }}"
            - name: POSTGRES_USER
              value: "{{ .Values.postgres.username }}"
            - name: POSTGRES_HOST
              value: "{{ .Values.postgres.host }}"

Environment

- OS:Ubuntu 22.04
- How docker service was installed:

CPU architecture

x86-64

Docker creation

env:
            - name: POSTGRES_PASSWORD
              value: "{{ .Values.postgres.password }}"
            - name: POSTGRES_DB
              value: "{{ .Values.postgres.databases.nextcloud }}"
            - name: POSTGRES_USER
              value: "{{ .Values.postgres.username }}"
            - name: POSTGRES_HOST
              value: "{{ .Values.postgres.host }}"

Container logs

Environment variables are not effective

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions