docker update/upgrade 20version

Could you show to us the process to upgrade into swarm or compose, like, what comands have to be set during this? example: yarn database:migrate:prod yarn command:prod workspace:sync-metadata -f yarn command:prod upgrade-0.XX in this order? these three on just for server service? thanks and have a happy new year
9 Replies
Raph
Raph3mo ago
@lucas lima - Did you by chance start here? https://twenty.com/developers/section/self-hosting/upgrade-guide It's really important to NOT skip versions.
lucas lima
lucas limaOP3mo ago
thank you Raph!!!
Raph
Raph3mo ago
You're welcome!
lucas lima
lucas limaOP3mo ago
just one more thing i use docker swarm... so i using 3 containers worker/server/db these follow commands i set it just on server right? I'm using one container for each service part @Raph
Raph
Raph3mo ago
Yes, of course. I use docker as well. You'll want to be very careful about the ENV changes throughout each version upgrade. Just watch the logs for when the app starts complaining. you'll do somehing like
docker exec -it (container name) yarn:command etc
docker exec -it (container name) yarn:command etc
The biggest issue I had were schema issues and env changes.
lucas lima
lucas limaOP3mo ago
to avoid schema did you update db first right?
Raph
Raph3mo ago
I updated first and then ran migrations.
lucas lima
lucas limaOP3mo ago
ok thanks bro
Raph
Raph3mo ago
Of course! You're welcome.

Did you find this page helpful?