meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:sw:openproject:package_to_docker [2026/06/29 16:40] – niziak | linux:sw:openproject:package_to_docker [2026/06/30 11:46] (current) – niziak | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Migrate packaged installation to docker compose. | Migrate packaged installation to docker compose. | ||
| + | |||
| + | WHY: | ||
| + | * it will be only official supported method in future (until current distros reaches EOL) | ||
| + | * it can be scaled easily (i.e. docker swarm) | ||
| + | * easier migration to another machine | ||
| References: | References: | ||
| Line 8: | Line 13: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| ===== setup docker compose ===== | ===== setup docker compose ===== | ||
| Line 15: | Line 23: | ||
| ===== database migration ===== | ===== database migration ===== | ||
| - | Packaged installation creates binary '' | + | Packaged installation creates binary '' |
| Packaged installation: | Packaged installation: | ||
| Line 45: | Line 53: | ||
| </ | </ | ||
| + | Restore '' | ||
| + | |||
| + | <code bash> | ||
| + | zstd -d -c openproject.sql.zst | docker compose exec -T -u postgres db psql -d openproject | ||
| + | </ | ||
| + | |||
| + | Convert schema openproject to public | ||
| + | <code bash> | ||
| + | docker compose exec -it -u postgres db psql -d openproject -c "DROP SCHEM A public CASCADE;" | ||
| + | docker compose exec -it -u postgres db psql -d openproject -c "ALTER SCHEMA openproject RENAME TO public;" | ||
| + | </ | ||
| + | |||
| + | Verify that there are tables and OP users: | ||
| + | <code bash> | ||
| + | docker compose exec -it -u postgres db psql -d openproject -c " | ||
| + | docker compose exec -it -u postgres db psql -d openproject -c " | ||
| + | </ | ||
| + | |||
| + | Startup everything: | ||
| + | <code bash> | ||
| + | docker compose up -d | ||
| + | </ | ||
| + | |||
| + | ====== Restore attachments ====== | ||
| + | |||
| + | <code bash> | ||
| + | tar -C / | ||
| + | chown -R 1000:1000 / | ||
| + | </ | ||
| + | |||
| + | ====== Inbound emails ====== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | ====== Outbound mails ====== | ||
| + | |||
| + | References: | ||
| + | * [[https:// | ||
| + | |||
| + | References to do: | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | |||
| + | Verify what final docker compose envs looks like with command: | ||
| + | <code bash> | ||
| + | docker compose config | ||
| + | </ | ||
| + | There are issues with passing SMTP related env to OP: | ||
| + | * [[https:// | ||
| + | * | ||
| + | Using postfix relay on local host. | ||