Skip to content

Instantly share code, notes, and snippets.

@ualmtorres
Created March 9, 2021 19:08
Show Gist options
  • Save ualmtorres/102a65abc4fea2f3929b48d6803a6b87 to your computer and use it in GitHub Desktop.
Save ualmtorres/102a65abc4fea2f3929b48d6803a6b87 to your computer and use it in GitHub Desktop.
docker-compose file for Redis and Redis commander
version: "3.7"
services:
redis:
image: redis:latest
ports:
- 6379:6379
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis-data:/data
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis:6379
- HTTP_USER=root
- HTTP_PASSWORD=qwerty
ports:
- 8081:8081
depends_on:
- redis
volumes:
redis-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment