Files
nomad/e2e/podman/input/redis.hcl
2023-08-10 17:27:29 -05:00

36 lines
571 B
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
# This is a simple redis job using the podman task driver.
job "redis" {
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "cache" {
network {
port "db" {
to = 6379
}
}
task "redis" {
driver = "podman"
config {
image = "docker.io/library/redis:7"
ports = ["db"]
auth_soft_fail = true
}
resources {
cpu = 50
memory = 128
}
}
}
}