Created
February 8, 2023 15:37
-
-
Save damarowen/43fa00a3eb3c07116abd28445c05785a to your computer and use it in GitHub Desktop.
docker redis and redis-gui-commander
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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