Skip to content

Instantly share code, notes, and snippets.

@donhenton
Last active August 9, 2023 11:52
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save donhenton/dc5a13fcc3d4b581dc60e9beb58c1689 to your computer and use it in GitHub Desktop.
Save donhenton/dc5a13fcc3d4b581dc60e9beb58c1689 to your computer and use it in GitHub Desktop.
Redis/Redis-commander Docker Compose with Persistence
version: '3'
services:
redis:
container_name: redis
hostname: redis
image: redis
command: ["redis-server", "--appendonly", "yes"]
volumes:
- ~/redis/data:/data
ports:
- "6379:6379"
redis-commander:
container_name: redis-commander
hostname: redis-commander
image: rediscommander/redis-commander:latest
build: .
restart: always
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- 8081:8081
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment