Skip to content

Instantly share code, notes, and snippets.

@damarowen
Created February 8, 2023 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damarowen/43fa00a3eb3c07116abd28445c05785a to your computer and use it in GitHub Desktop.
Save damarowen/43fa00a3eb3c07116abd28445c05785a to your computer and use it in GitHub Desktop.
docker redis and redis-gui-commander
version: '3'
# this name will be useful for (e.g.) "docker compose -p"
name: redis-local
services:
redis:
image: redis:6.2-alpine
restart: always
ports:
- '6379:6379'
container_name: redis
command: redis-server --save 20 1 --loglevel warning
volumes:
- ./redis:/data/redis
redis-commander:
image: rediscommander/redis-commander
restart: always
ports:
- '8081:8081'
container_name: redis-commander
environment:
#label:host:port
REDIS_HOSTS: local:redis:6379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment