After configuring my Server as written in Server setup, me and my friend Claudio figured that even if understanding Docker is boring and tricky, managing and maintaining software through it is much more simple and secure.
So one night we backed up all of my data on the server, we completely wiped it clean, and we reinstalled Ubuntu 20.04 from scratch. After doing this, we reinstalled everything through Docker.
Actually, it’s quite useless to thoroughly write and explain all of the steps to do this since there are some very well written guides which I'll link below.
- Initial server setup
- How to install and use Docker
- How to install and use docker-compose
- How to use Træfik v2 as a reverse proxy for Docker containers
- docker-compose config files, a repository made by Claudio containing the docker-compose files we use to set stuff up.
occ through Docker
docker-compose exec --user www-data app php occ db:add-missing-indices