Update process for docker compose is wrong #3404
Labels
ready
Ready for implementation
type: bug
Something isn't working
work: documentation
Improvements or additions to documentation
Milestone
Description
Currently, the update process for a docker compose installation doesn't work as documented. If you try to upgrade from 0.1.3 to 0.1.4, your installation will cease to recognize its Django database under some (most) cases, causing distress. No data is lost, but manual intervention is required in order to reattach the service to the Django DB. This is because the
DJANGO_DATABASE_URL
is no longer supported by the new setup.Expected behavior
Either we need to improve the environment variable handling and deprecate rather than remove
DJANGO_DATABASE_URL
, or we need to document how a user can update their.env
file anddocker-compose.yml
file to match with the new variables.I prefer the former solution, on the off chance we have users who have customized their docker compose files and don't want to change them. It's also more well-aligned with the goal of the docker compose installation style (i.e., that the user should customize or write their own docker compose configuration)
To Reproduce
Try to upgrade from 0.1.3 to 0.1.4 with non-default Django DB
Additional context
Discovered while updating the internal.mathesar.org server. Introduced by one of the last merged PRs to the branch before the release was cut (so it went unnoticed).
The text was updated successfully, but these errors were encountered: