4 ms·
This is exactly how I deployed my last few projects, and it works great! The only things I'd change are switching to Caddy instead of Traefik (because Traefik
by GordonS 5y ago
This is exactly how I deployed my last few projects, and it works great!
The only things I'd change are switching to Caddy instead of Traefik (because Traefik 2.x config is just so bewilderingly complex!), and I'm not convinced Portainer is really adding any value.
Appreciate you sharing your setup script too.
- dneri 5y agoAbsolutely agree, I switched to Caddy recently and the configuration is considerably easier than Traefik. Very simple TLS setup (including self signed certificates).
- e12e 5y agoAfter some struggle I've managed to set up traefik with tags/docker socket so that services can "expose themselves" via tags in their service definitions - is there anything similar for caddy?
- mradmin 5y agoAgree the traefik config is a little complex but otherwise it works great for me. About using portainer, it's useful for showing a holistic view of your containers and stacks, but I also use it for remote deployment of services (Eg as part of CI/CD). I'll push a new docker image version then I'll use the portainer webhooks to redeploy the service, then docker swarm takes over.
- GordonS 5y agoAh, I wasn't aware of the web hooks, that sounds useful :)
- mradmin 5y agoHere's an example using GitHub Actions: https://github.com/badsyntax/docker-box/tree/master/examples/nginx-app#continuous-deployment-with-github-actions https://github.com/badsyntax/docker-box/tree/master/examples...