Skip to content

Instantly share code, notes, and snippets.

@marcaurele
Created March 10, 2021 07:09
Show Gist options
  • Save marcaurele/967772451a91ac3e0a7a7442056e5d01 to your computer and use it in GitHub Desktop.
Save marcaurele/967772451a91ac3e0a7a7442056e5d01 to your computer and use it in GitHub Desktop.
Nomad sample job
job "docs" {
datacenters = ["racobro"]
group "example" {
network {
port "http" {
static = "5678"
}
}
task "server" {
driver = "docker"
config {
image = "hashicorp/http-echo"
ports = ["http"]
args = [
"-listen",
":5678",
"-text",
"hello world",
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment