Content
You are here:
Migrate from Docker Compose to Packaged
Added by Mircea Marin over 3 years ago
Hi,
we are currently testing OpenProject (v. 11.2.3) internally and have it deployed through docker-compose. We are thinking about starting to use the tool productively but not as docker-compose. Instead we want to use the RPM version. We would also like to keep the data that is already available in the test instance. My question is, how would we be doing this the right way? Is it enough to dump the PostgreSQL DB from our test instance and restore it in the "live" one? Or should we take anything else into account? I could not find any guides for migrating from docker-compose to packaged installation.
Thanks!
Replies (3)
Here's part of the answer (in case you don't have custom settings or attachments) - covers the migration of the database. I hope this works for you but if it doesn't, I probably can't help you!
At this point you already imported the database (if all went well) but the problem is that the importing of the data in the previous step messed up with the permissions for the tables in the "openproject" database. For this I used a script that changes all permissions for the tables in the "openproject" database which I found here: Changes the owner on all tables, sequences, views, and functions in a PostgreSQL database with support for identifiers with whitespace and non-public schemas. ยท GitHub
If all went well you can now access OpenProject at the new location. If not, then try running
sudo openproject configure
to re-run the configuration steps. Lastly, if all else fails, check the logssudo openproject logs
Hope this helps!
I ended up answering alot of these myself.
Did you end up needing the old Database password for the import? (NO)
Do you need to know the path to the current database location?(NO)
This was a huge help, thanks so much, i managed to migrate my install from docker to self sustainable in no time thanks to you and your work.
This also helped me very much.
I also did not have to run the pg_change_schema_owner script on the current version (14.2) when migrating from docker-compose to rpm.