matrix-docker-compose/redis-tls/docker-compose.yaml
2023-10-02 16:20:24 +00:00

34 lines
1,004 B
YAML

version: '3'
services:
predixy:
image: haandol/predixy:latest
container_name: predixy
network_mode: "host"
volumes:
- ./predixy/conf:/etc/predixy/conf
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
- ./cert/certificate.crt:/etc/certificate.crt
- ./cert/certificate.key:/etc/certificate.key
- ./cert/CA-cert.pem:/etc/CA-cert.pem
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
- ./cert/certificate.crt:/etc/certificate.crt
- ./cert/certificate.key:/etc/certificate.key
- ./cert/CA-cert.pem:/etc/CA-cert.pem
restart: always
depends_on:
- redis-master