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

35 lines
1,004 B
YAML
Raw Normal View History

2023-10-02 15:27:31 +00:00
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
2023-10-02 16:16:26 +00:00
- ./cert/certificate.crt:/etc/certificate.crt
- ./cert/certificate.key:/etc/certificate.key
- ./cert/CA-cert.pem:/etc/CA-cert.pem
2023-10-02 15:27:31 +00:00
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
2023-10-02 16:20:24 +00:00
- ./cert/certificate.crt:/etc/certificate.crt
- ./cert/certificate.key:/etc/certificate.key
2023-10-02 16:16:26 +00:00
- ./cert/CA-cert.pem:/etc/CA-cert.pem
2023-10-02 15:27:31 +00:00
restart: always
depends_on:
- redis-master