Created
February 27, 2020 06:29
-
-
Save guce/1e79f61fd895722c86e968f7acc069a5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 "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