logoalt Hacker News

_deftoday at 4:45 PM3 repliesview on HN

I wonder how gitops is done with docker compose


Replies

c-hendrickstoday at 6:52 PM

A long long time ago I wrote something for the company I was with to allow for pre-merge staging environments (preview environments but I didn't have a name for them then)

Used docker-compose + git for application servers, and docker-compose + sync for static sites.

Actually worked pretty well! There's bound to be better options nowadays.

stryantoday at 5:01 PM

I see a lot of people using Komodo for it, though if I had to pick I'd go with Doco CD[0]. You can also use standard Ansible for just cron+bash script to git pull.

On the Podman side, I wrote a tool named Materia[1] for it, but there's also the wonderful Ansible quadlet role as well as Quadit and Orchess.

[0] https://github.com/kimdre/doco-cd

[1] https://primamateria.systems or https://github.com/stryan/materia

rsgmtoday at 4:53 PM

I recently setup Arcane and started migrating stuff from Truenas apps, they were all deployed as custom docker compose services so it worked out. Arcane supports Git syncs to auto deploy compose stacks, https://getarcane.app/docs/features/projects#sync-from-git I'll write up some posts on my full setup soon.

show 1 reply