Skip to content

Instantly share code, notes, and snippets.

@Rizwan-Hasan
Created January 25, 2025 06:09
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: redis
ports:
- target: 6379
published: "6379"
protocol: tcp
restart: unless-stopped
volumes:
- type: bind
source: ./redis-redisinsight/redis/data
target: /data
- type: bind
source: ./redis-redisinsight/redis/config
target: /usr/local/etc/redis
privileged: false
container_name: "redis"
hostname: "redis"
redisinsight:
image: redis/redisinsight:latest
volumes:
- type: bind
source: ./redis-redisinsight/redisinsight/data
target: /data
ports:
- target: 5540
published: "5540"
protocol: tcp
privileged: false
container_name: redisinsight
hostname: "redisinsight"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment