I have been self hosting from quite a while and recently I had to restart my server. After restarting, for some reason portainer didn’t recognise any of my stacks and all my stacks becaome “limited” and I lost all my docker_compose for all services. So decided to create this ansible script which keep all my configuration in one place in case I have to reinstall my server.

The script automates all my setup which used to take hours of work and now I can have everything up and running in minutes in case of failure.

I am currently working on backing up configuration files for all my docker services to Mega (free plan) using MegaCMD Backup, which keeps a rotational backup of the files ( last 10 days in my case).

Would like to share with all and hope to get some improvements/ideas:

https://github.com/vikramsoni2/homelab_infra