/2048-game-jobspec.nomad Secret
Last active
November 24, 2021 18:47
Star
You must be signed in to star a gist
Nomad 2048 Game Jobspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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