Skip to content

Instantly share code, notes, and snippets.

@guce
Created February 27, 2020 06:29
Show Gist options
  • Save guce/1e79f61fd895722c86e968f7acc069a5 to your computer and use it in GitHub Desktop.
Save guce/1e79f61fd895722c86e968f7acc069a5 to your computer and use it in GitHub Desktop.
job "example" {
datacenters = ["dc1"]
type = "service"
group "cache" {
count = 1
task "redis" {
driver = "docker"
config {
image = "redis:3.2"
port_map {
db = 6379
}
}
resources {
cpu = 500 # 500 MHz
memory = 256 # 256MB
network {
mbits = 10
port "db" {}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment