chassis-agent/docker-compose-redis.yml

27 lines
478 B
YAML
Raw Permalink Normal View History

2024-02-04 17:27:41 +08:00
version: "3.8"
2023-11-23 15:37:14 +08:00
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:
2024-02-04 17:27:41 +08:00
- redis_network
- diyue-network
2023-11-23 15:37:14 +08:00
networks:
redis_network:
driver: bridge
2024-02-04 17:27:41 +08:00
diyue-network:
driver: overlay
attachable: true
2023-11-23 15:37:14 +08:00
volumes:
redis_data:
driver: local