|
|
@@ -3,8 +3,7 @@ services:
|
|
|
image: registry.cn-chengdu.aliyuncs.com/reghao/redis:6.0.16-bullseye
|
|
|
container_name: redis-slave-1
|
|
|
restart: always
|
|
|
- ports:
|
|
|
- - "6379:6379"
|
|
|
+ network_mode: host
|
|
|
volumes:
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
- /opt/docker/redis/redis.conf:/etc/redis/redis.conf
|
|
|
@@ -37,8 +36,7 @@ services:
|
|
|
image: registry.cn-chengdu.aliyuncs.com/reghao/redis:6.0.16-bullseye
|
|
|
container_name: sentinel-2
|
|
|
restart: always
|
|
|
- ports:
|
|
|
- - "26379:26379"
|
|
|
+ network_mode: host
|
|
|
command: redis-sentinel /etc/redis/sentinel.conf
|
|
|
volumes:
|
|
|
- /etc/localtime:/etc/localtime:ro
|