matrix-docker-compose/redis/docker-compose.yaml

29 lines
708 B
YAML
Raw Normal View History

2023-09-25 11:43:37 +00:00
version: '3'
services:
2023-09-26 16:29:59 +00:00
predixy:
image: haandol/predixy:latest
container_name: predixy
network_mode: "host"
volumes:
- ./predixy/conf:/etc/predixy/conf
2023-09-25 11:43:37 +00:00
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