This is why I like https://github.com/mother-of-all-self-hosting/mash-playbook and its associated Ansible roles for configuring various services.
All the portability of Docker, plus (something close to) the ease of use of installing a distro package like an .rpm or .deb.