Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- job "http-test" {
- region = "global"
- datacenters = ["troy"]
- type = "service"
- group "http-test" {
- count = 1
- task "http-daemon" {
- driver = "docker"
- config {
- image = "192.168.96.192:5000/helloworld-http:latest"
- port_map = {
- http = 80
- }
- }
- service {
- port = "http"
- check {
- type = "http"
- path = "/"
- interval = "10s"
- timeout = "2s"
- }
- }
- env {
- "SOMEVAL" = "EXAMPLE"
- }
- resources {
- cpu = 500 # MHz
- memory = 128 # MB
- network {
- mbits = 100
- #dynamic port allocation
- port "http" {}
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment