Created
September 20, 2022 03:00
-
-
Save juanluisbaptiste/a44e74dbdec0d96221ba60d576bb4d50 to your computer and use it in GitHub Desktop.
Example Nomad job
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"] | |
group "cache" { | |
network { | |
port "db" { | |
to = 6379 | |
} | |
} | |
task "redis" { | |
driver = "docker" | |
config { | |
image = "redis:7" | |
ports = ["db"] | |
auth_soft_fail = true | |
} | |
resources { | |
cpu = 500 | |
memory = 256 | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment