Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying with postgres db #55

Closed
arbianqx opened this issue Oct 24, 2023 · 8 comments
Closed

Deploying with postgres db #55

arbianqx opened this issue Oct 24, 2023 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@arbianqx
Copy link

Hi there,

Is there any chance to deploy this with postgres database.

I tried to change the client to (psql) and also specify the secrets for the database connection but it gets stuck on Init container.

Is there any workaround?

@arbianqx arbianqx changed the title Deploying with helm chart with postgres db Deploying with postgres db Oct 24, 2023
@dlen
Copy link
Member

dlen commented Oct 24, 2023

Hey @arbianqx,

You are right the chart lacks proper postgresql support in the init container. An option to disable the init container from values would also be useful.

Only workaround that comes to my mind now would be to clone the chart and remove or disable the initContainer from the deployment template if your postgresql is available.

@dlen dlen added the enhancement New feature or request label Oct 24, 2023
@arbianqx
Copy link
Author

arbianqx commented Oct 24, 2023

Thanks for replying to this @dlen. I might give it a try. Do I need any other environment variables to add apart from these:

DATASOURCES_DEFAULT_HOST:
DATASOURCES_DEFAULT_PASSWORD:
DATASOURCES_DEFAULT_USERNAME:
DATASOURCES_DEFAULT_DATABASE:

@dlen
Copy link
Member

dlen commented Oct 24, 2023

No problem!

DATASOURCES_DEFAULT_SCHEMA if you want to specify postgresql schema

@arbianqx
Copy link
Author

Well that actually didn't work either.

I went to docker-compose and check the configuration there.

DATASOURCES_DEFAULT_DRIVER: Cake\Database\Driver\Postgres
DATASOURCES_DEFAULT_ENCODING: "utf8"
DATASOURCES_DEFAULT_URL: "postgres://passbolt:P4ssb0lt@db:5432/passbolt?schema=passbolt"

I made sure to add the environment variables in this format. The migrations applied.

Now I'm gonna check to create a ingress and such and to see if its working.

Will keep you posted.

@xskrasek
Copy link

Will support for Postgres in the helm chart be implemented in the foreseeable future? It is a desirable future, and we do not want to modify the chart if possible, to ease the update process.

@dlen
Copy link
Member

dlen commented Oct 30, 2023

Yeah we want to tackle this as the next item for the chart. However, I can't give you an ETA at the moment as we have limited bandwidth.

@dlen
Copy link
Member

dlen commented Nov 14, 2023

@xskrasek psql support for the chart is in the testing stage. A new release will be published soon.

@dlen
Copy link
Member

dlen commented Nov 15, 2023

Fixed with 0.5 release

@dlen dlen closed this as completed Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants