Skip to content

Instantly share code, notes, and snippets.

@pkellner
Created August 30, 2024 16:44
Show Gist options
  • Save pkellner/123762ad59ec7921515c7ba5d1014cef to your computer and use it in GitHub Desktop.
Save pkellner/123762ad59ec7921515c7ba5d1014cef to your computer and use it in GitHub Desktop.
version: '3.8'
services:
changedetection:
labels:
- 'traefik.http.middlewares.<random_unique_name>.basicauth.users=test:$2y$12$ci.4U63YX83CwkyUrjqxAucnmi2xXOIlEF6T/KdP9824f1Rf1iyNG'
image: 'redis/redisinsight:latest'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5540"]
interval: 30s
timeout: 10s
retries: 3
ports:
- '5540:5540' # Ensure this is included if you want to access RedisInsight on this port
redisdata:
image: 'redis:latest'
container_name: redis
restart: always
ports:
- '6379:6379'
expose:
- 6379
command:
- redis-server
- '--appendonly'
- 'no'
- '--maxmemory'
- 500mb
- '--maxmemory-policy'
- allkeys-lru
volumes:
- 'redis-data:/data'
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
redisinsight:
image: 'redis/redisinsight:latest'
container_name: redisinsight
ports:
- '5540:5540'
expose:
- 5540
volumes:
- 'redisinsight-data:/db'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5540"]
interval: 30s
timeout: 10s
retries: 3
volumes:
redis-data: null
redisinsight-data: null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment