github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/podman/input/redis.nomad (about)

     1  job "podman-redis" {
     2    datacenters = ["dc1"]
     3    type        = "service"
     4  
     5    constraint {
     6      attribute = "${attr.kernel.name}"
     7      value     = "linux"
     8    }
     9  
    10    group "redis" {
    11      task "redis" {
    12        driver = "podman"
    13  
    14        config {
    15          image = "docker://redis"
    16  
    17          port_map {
    18            redis = 6379
    19          }
    20        }
    21  
    22        resources {
    23          cpu    = 500
    24          memory = 256
    25  
    26          network {
    27            mbits = 20
    28            port "redis" {}
    29          }
    30        }
    31      }
    32    }
    33  }