I’m just starting to upgrade my basic unraid docker to an InfraAsCode setup.
I will use unraid as Nas only. My media and backups will be on unraid, everything else on a separate proxmox VM that is running and SSD storage array for ZFS. Both the unraid and proxmox hosts share their storage via NFS. Each docker container mounts the NFS volumes as needed.
For the containers I use an alpine VM with docker. I use portainer to connect to a gitea repo (on unraid) to pull down the docker compose file.
So my workflow is, use VS code on my PC to write the compose file, commit to git, then on portainer I hit the redeploy button and it pulls the latest compose file automatically.
What’s your setup?
I’ve only automated a single app this way so far (more to come!), but:
- I host the AppCode on my Gitea instance.
- When I push a change to that, Drone picks that up and kicks off a workflow that builds a new image, pushes it to the image repository on Gitea, and makes an automated commit to the Infra Code repo specifying the new image tag in the k8s Deployment definition.
- ArgoCD detects the new definition, and kicks off a sync.
Is that really “infuructure as code”? It sounds like plain docker to me