I created a shell script to easily set this up: https://github.com/badsyntax/docker-box
I created a shell script to easily set this up: https://github.com/badsyntax/docker-box
There's different kind of workloads, I use Docker containers the most, but jobs can also run on a system-level, there's also different types of operating modes, some jobs can be scheduled like cron, where other jobs just exposes a port and wants to be registered in Consuls service-mesh.
A job can also consist of multiple subtasks, an example could be nginx + django/rails subtasks that will be deployed together.
You can see an example of a Docker job here: https://www.nomadproject.io/docs/job-specification#example
With a few modifications you can easily allow for blue/green-deployments.
I'm at: gordon dot stewart 333 at gmail dot com
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.
My problem is in the two to eight server space, but networking is already externally managed and I have a loadbalancer. It’s in this space I feel that we’re lacking good solution. The size is to small to justify taking out nodes for a control plane, but big enough that Ansible feels weird.