Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- job "vote-nomad" {
- datacenters = ["dc1"]
- type = "service"
- group "vote-group" {
- task "vote" {
- driver = "docker"
- config {
- image = "dockersamples/examplevotingapp_vote:before"
- dns_search_domains = ["service.dc1.consul"]
- port_map {
- http = 80
- }
- }
- service {
- name = "vote"
- port = "http"
- check {
- name = "vote interface running on 80"
- interval = "10s"
- timeout = "5s"
- type = "http"
- protocol = "http"
- path = "/"
- }
- }
- resources {
- cpu = 500 # 500 MHz
- memory = 256 # 256MB
- network {
- port "http" {
- static = 5000
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement