I apologize for the wall of text, but I wanted to thoroughly explain my choices and reasoning for this docker-compose.yml. I hope you find it useful.
I am working on writing up some quality help/instructions for Lemmy instance admins. This is targeted toward those that are newer to Lemmy and Docker, but even those that know a thing or two might learn something from me. I have been a sysadmin for over 20 years, so I know some things.
I thought I'd share the first complete page I have written. I'd love some feedback if you have any to share.
I do not recommend using Ansible. It adds additional requirements and complexities that are unnecessary. Ansible is a great tool for managing multiple servers and software installs, in my opinion it is not the right tool to install Lemmy on a single instance. My install instructions require only that you have docker and docker compose installed.
That said, you could easily replace the docker-compose.yml that Ansible set up for you with the one I am providing. Just don't run Ansible against your server again or it will wipe out your changes.
Yea im well versed in docker (years of homelab) not saying its perfect but the ansible playbook had my droplet up in 15 min. I see where your coming from though and will likely just manage the compose myself now