Skip to content

Instantly share code, notes, and snippets.

@Rizwan-Hasan
Last active July 22, 2025 18:12
Show Gist options
  • Save Rizwan-Hasan/fd1bcd333b96dc83fe3bbbc12acc300d to your computer and use it in GitHub Desktop.
Save Rizwan-Hasan/fd1bcd333b96dc83fe3bbbc12acc300d to your computer and use it in GitHub Desktop.
A docker compose file for spinning up redis with redisinsight
name: redis-redisinsight
services:
redis:
image: bitnami/redis:latest
# ports:
# - target: 6379
# published: "6379"
# protocol: tcp
environment:
- REDIS_PASSWORD=12345
- REDIS_MASTER_PASSWORD=12345
restart: unless-stopped
volumes:
- redis_data:/bitnami/redis/data
- redis_config:/usr/local/etc/redis
privileged: false
container_name: "redis"
hostname: "redis"
network_mode: "host"
deploy:
resources:
limits:
cpus: '1.0'
memory: 512M
redisinsight:
image: redis/redisinsight:latest
volumes:
- redisinsight_data:/data
# ports:
# - target: 5540
# published: "5540"
# protocol: tcp
privileged: false
container_name: redisinsight
hostname: "redisinsight"
network_mode: "host"
deploy:
resources:
limits:
cpus: '1.0'
memory: 512M
volumes:
redis_data:
redis_config:
redisinsight_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment