@Ntinos I wrote a guide for doing this on Ubuntu 18.04 and Nextcloud 18. There may be a couple minor differences, but it’s basically the same.
On the note about OCC, be aware that you need to execute that inside the container, not on the host OS. I have an easy fix for that in my guide as well.