Skip to content

Instantly share code, notes, and snippets.

@arsalanses
Created April 23, 2024 09:49
Show Gist options
  • Select an option

  • Save arsalanses/e68c2d27808768db81cb972d1bfe2495 to your computer and use it in GitHub Desktop.

Select an option

Save arsalanses/e68c2d27808768db81cb972d1bfe2495 to your computer and use it in GitHub Desktop.
redis insight
services:
traefik:
image: traefik:v2.11.0
container_name: traefik
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
labels:
- "traefik.enable=false"
ports:
- "80:80"
command:
- "--api"
- "--providers.docker=true"
- "--providers.docker.exposedByDefault=false"
- "--entrypoints.http=true"
- "--entrypoints.http.address=:80"
# - "--entrypoints.http.http.redirections.entrypoint.to=https"
# - "--entrypoints.http.http.redirections.entrypoint.scheme=https"
- "--entrypoints.https=true"
- "--entrypoints.https.address=:443"
- "--log=true"
redis_insight:
image: redis/redisinsight:2.48.0
container_name: redis_insight
ports:
- '127.0.0.1:5540:5540'
labels:
- "traefik.enable=true"
- "traefik.http.routers.redis_insight.entrypoints=http"
- "traefik.http.routers.redis_insight.rule=Host(`example.site.com`)"
- "traefik.http.services.redis_insight.loadbalancer.server.port=5540"
- "traefik.http.routers.redis_insight.middlewares=auth"
- "traefik.http.middlewares.auth.basicauth.users=admin:00000000000000"
volumes:
- redisinsight:/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment