chassis-agent/docker-compose-redis.yml

23 lines
397 B
YAML
Raw Normal View History

2023-11-23 15:37:14 +08:00
version: '3.8'
services:
redis:
image: redis:7.2.3
hostname: redis
container_name: redis
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass redis6379
volumes:
- redis_data:/data
networks:
redis_network:
networks:
redis_network:
driver: bridge
volumes:
redis_data:
driver: local