23 lines
425 B
YAML
23 lines
425 B
YAML
|
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=secret
|
||
|
ports:
|
||
|
- 8081:8081
|
||
|
depends_on:
|
||
|
- redis
|
||
|
|
||
|
volumes:
|
||
|
redis-data:
|