Best Practices For Running Migrations In Self-Hosted Kubernetes Environments #8388
-
|
What is the recommended best practice for running database migrations via the Based on https://github.com/prowler-cloud/prowler/blob/master/api/Dockerfile and https://github.com/prowler-cloud/prowler/blob/master/api/docker-entrypoint.sh, it appears that migrations are run as part of container startup. However, I've had to restart the I'm not sure if I should be
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @addefisher, All three options you mentioned seem valid. Nevertheless, we recommend delegating the responsibility to the entrypoint. Migrations should only be applied when we release a new version that includes new migrations. I hope this answers your question. |
Beta Was this translation helpful? Give feedback.
Hi @addefisher,
All three options you mentioned seem valid.
Nevertheless, we recommend delegating the responsibility to the entrypoint. Migrations should only be applied when we release a new version that includes new migrations.
I hope this answers your question.