4 ms·
I have a similar setup, but with Nomad (in single server mode) instead of docker swarm and portainer. It works great.
by kawsper 5y ago
I have a similar setup, but with Nomad (in single server mode) instead of docker swarm and portainer. It works great.
- stavros 5y agoWhat does Nomad do for you, exactly? I've always wanted to try it out, but I never really got how it works. It runs containers, right? Does it also do networking, volumes, and the other things Compose does?
- heipei 5y agoWhat I like about Nomad is that it allows scheduling non-containerized workloads too. What it "does" for me is that it gives me a declarative language to specify the workloads, has a nice web UI to keep track of the workloads and allows such handy features as looking at the logs or exec'ing into the container from the web UI, amongst other things. Haven't used advanced networking or volumes yet though.
- stavros 5y agoSo do you use it just for scheduling commands to run? I.e. do you use `docker-compose up` as the "payload"?
- kawsper 5y agoYou send a job-specification to the Nomad API. 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 https://www.nomadproject.io/docs/job-specification#example With a few modifications you can easily allow for blue/green-deployments.
- stavros 5y agoThis is very interesting, thanks! I'll give it a go.
- GordonS 5y agoDon't suppose you're able to point to a simple Nomad config for a dockerised web app, with a proxy and Let's Encrypt?
- ianlevesque 5y agoNomad is so perfect for this. I've been meaning to blog about it somewhere.