github.com/smithx10/nomad@v0.9.1-rc1/e2e/fabio/fabio.nomad (about)

     1  job "fabio" {
     2    datacenters = ["dc1", "dc2"]
     3    type = "system"
     4  
     5    group "fabio" {
     6      task "fabio" {
     7        driver = "docker"
     8        config {
     9          image = "fabiolb/fabio"
    10          network_mode = "host"
    11        }
    12  
    13        resources {
    14          cpu    = 100
    15          memory = 64
    16          network {
    17            mbits = 20
    18            port "lb" {
    19              static = 9999
    20            }
    21            port "ui" {
    22              static = 9998
    23            }
    24          }
    25        }
    26      }
    27    }
    28  }