2022-11-25 16:52:19 +01:00
version: '3.7'
networks:
traefik:
external: true
volumes:
redisinsight__db:
services:
redisinsight:
container_name: redisinsight
image: git.rznet.fr/docker/redisinsight:latest
restart: unless-stopped
volumes:
- redisinsight__db:/root/.redisinsight-v2/
cap_add:
- IPC_LOCK
labels:
traefik.enable: "true"
## IP
traefik.http.routers.redisinsight.rule: "Host(`{{ redisinsight_domain }}`){% if redisinsight_whitelist is defined %} && ClientIP({% for ip in redisinsight_whitelist %}`{{ ip }}`,{% endfor %}){% endif %}"
traefik.http.routers.redisinsight.entrypoints: "websecure"
traefik.http.routers.redisinsight.tls.certresolver: "letsencrypt"
traefik.http.services.redisinsight.loadbalancer.server.port: "5000"
2023-03-01 18:29:00 +01:00
{% if traefik_ipwhitelist is defined %}
2023-03-03 15:39:04 +01:00
traefik.http.routers.redisinsight.middlewares: "clientips@docker"
2023-03-01 18:29:00 +01:00
{% endif %}
2022-11-25 16:52:19 +01:00
{% if redisinsight_auth is defined %}
## AUTH
traefik.http.routers.redisinsight-auth.rule: "Host(`{{ redisinsight_domain }}`)"
traefik.http.routers.redisinsight-auth.entrypoints: "websecure"
traefik.http.routers.redisinsight-auth.tls.certresolver: "letsencrypt"
traefik.http.routers.redisinsight-auth.middlewares: "basicauth@file"
2024-03-18 10:52:47 +01:00
com.centurylinklabs.watchtower.enable: {{ redisinsight_watchtower_enable | default('true') }}
2022-11-25 16:52:19 +01:00
{% endif %}
networks:
- traefik