| 1 | amends "../../config/Service.pkl" |
| 2 | |
| 3 | name = "Redis Insight" |
| 4 | dependsOn { "dawarich" } |
| 5 | |
| 6 | secrets { |
| 7 | ["encryption_key"] {} |
| 8 | } |
| 9 | |
| 10 | container { |
| 11 | image = "docker.io/redis/redisinsight@sha256:0131987fd5fefe3828ed33666f9742bd071b729f5a95cf923c593c14a8995c2c" |
| 12 | cpu = 150 |
| 13 | |
| 14 | http { |
| 15 | containerPort = 5540 |
| 16 | subdomain = "redis" |
| 17 | authRole = "infra-admin" |
| 18 | checkPath = "/api/health/" |
| 19 | } |
| 20 | |
| 21 | volumes { |
| 22 | ["/data"] {} |
| 23 | } |
| 24 | |
| 25 | env { |
| 26 | ["RI_ACCEPT_TERMS_AND_CONDITIONS"] = "true" |
| 27 | ["RI_ENCRYPTION_KEY"] = "${secret.own.encryption_key}" |
| 28 | ["RI_REDIS_ALIAS"] = "Dawarich Redis" |
| 29 | } |
| 30 | |
| 31 | envTemplate = """ |
| 32 | {{ range nomadService 1 (env "NOMAD_ALLOC_ID") "dawarich-redis" }}RI_REDIS_HOST={{ .Address }} |
| 33 | RI_REDIS_PORT={{ .Port }}{{ end }} |
| 34 | """ |
| 35 | } |