34 lines
976 B
YAML
34 lines
976 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/san.crt:/etc/certificate.crt
|
|
- ./cert/private.key:/etc/certificate.key
|
|
- ./cert/CA-cert.pem:/etc/chain.crt
|
|
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/san.crt:/etc/certificate.crt
|
|
- ./cert/private.key:/etc/certificate.key
|
|
- ./cert/CA-cert.pem:/etc/chain.crt
|
|
restart: always
|
|
depends_on:
|
|
- redis-master
|