github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/demo/vagrant/client2.hcl (about)

     1  # Increase log verbosity
     2  log_level = "DEBUG"
     3  
     4  # Setup data dir
     5  data_dir = "/tmp/client2"
     6  
     7  # Give the agent a unique name. Defaults to hostname
     8  name = "client2"
     9  
    10  # Enable the client
    11  client {
    12    enabled = true
    13  
    14    # For demo assume we are talking to server1. For production,
    15    # this should be like "nomad.service.consul:4647" and a system
    16    # like Consul used for service discovery.
    17    servers = ["127.0.0.1:4647"]
    18  }
    19  
    20  # Modify our port to avoid a collision with server1 and client1
    21  ports {
    22    http = 5657
    23  }
    24  
    25  # Because we will potentially have two clients talking to the same
    26  # Docker daemon, we have to disable the dangling container cleanup,
    27  # otherwise they will stop each other's work thinking it was orphaned.
    28  plugin "docker" {
    29    config {
    30      gc {
    31        dangling_containers {
    32          enabled = false
    33        }
    34      }
    35    }
    36  }