matrix-docker-compose/redis/docker-compose.yaml
2023-09-25 11:43:37 +00:00

22 lines
556 B
YAML

version: '3'
services:
redis-master:
container_name: "redis-master"
image: redis:7.2-alpine
network_mode: "host"
command: redis-server /etc/redis.conf
volumes:
- ./redis-master.conf:/etc/redis.conf
- ./masterdata:/data
restart: always
redis-slave:
container_name: "redis-slave"
image: redis:7.2-alpine
network_mode: "host"
command: redis-server /etc/redis.conf
volumes:
- ./redis-slave.conf:/etc/redis.conf
- ./slavedata:/data
restart: always
depends_on:
- redis-master