Skip to content

Instantly share code, notes, and snippets.

@avillela-tc
Last active November 24, 2021 18:47
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Nomad 2048 Game Jobspec
job "2048-game" {
datacenters = ["dc1"]
type = "service"
group "game" {
count = 1 # number of instances
network {
port "http" {
static = 80
}
}
task "2048" {
driver = "docker"
config {
image = "alexwhen/docker-2048"
ports = [
"http"
]
}
resources {
cpu = 500 # 500 MHz
memory = 256 # 256MB
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment