Caddy with Modules: How do you handle the building of custom docker images? reddit / selfhosted ---------------------------------------------------------------------- 10031 · 2023-12-11 19:36 Using Caddy and am using the CF DNS and Docker Label Proxy Modules. Works well, however, how would i handle updating? Ideally I would want an automated process to build the image using the fixed major number (2-Alpine) and automatically build any minor updates with my Dockerfile. I have looked around and seems like Github could be used for this? Any guides? ---------------------------------------------------------------------- Reverent · 2023-12-11 20:52 Why not just build it when you update the image. Docker compose supports this. ---------------------------------------------------------------------- SolFlorus · 2023-12-11 21:38 GitHub Actions. Use dependabot to bump your docker file, and have a different action for building and publishing. ---------------------------------------------------------------------- thekrautboy · 2023-12-11 22:24 Look at Github Actions workflows. Plenty of guides to have it build and push Docker images. You can also copy/paste workflows from other repos and use them as your own base. ---------------------------------------------------------------------- decryp7 · 2023-12-12 00:47 This. But on gitea with renovate bot. You can refer to the following links, [https://docs.gitea.com/usage/actions/overview](https://docs.gitea.com /usage/actions/overview) [https://docs.renovatebot.com/modules/platform/gitea/](https://docs.re novatebot.com/modules/platform/gitea/) [https://dev.decryptology.net/decryp7/caddy- docker/pulls/6](https://dev.decryptology.net/decryp7/caddy- docker/pulls/6) ---------------------------------------------------------------------- 10031 · 2023-12-12 01:28 Would i not have to build it everytime i do a docker compose up? ---------------------------------------------------------------------- Reverent · 2023-12-12 01:39 No, just every time you do a docker compose pull ---------------------------------------------------------------------- 10031 · 2023-12-12 01:49 I see. Seems like this is the easiest solution. Thank you. ---------------------------------------------------------------------- Veloder · 2023-12-12 06:44 If you don't mind using images built by someone else, take a look at this repository and maybe open a request asking for the specific modules you want? https://github.com/serfriz/caddy-custom-builds ---------------------------------------------------------------------- cyborgninja_ · 2023-12-12 11:08 I’ve set this up via a cron job to build locally then push to Docker hub. You can then get a Watchtower container configured to auto update from your custom image. Unfortunately I tore that workflow down a while ago but it was all based on Google results, nothing crazy. ---------------------------------------------------------------------- lazyzyf · 2023-12-14 03:11 how to build it?