So I’m having trouble setting up Redis Sentinel on Docker - I’m using Docker desktop on Windows 10, WSL2.
Here is the compose file -
version: "3.9"
networks:
Redis_Demo:
driver: bridge
services:
Redis_Dashboard:
container_name: "Redis_Dashboard"
image: "redislabs/redisinsight"
ports:
- "8001:8001"
networks:
- "Redis_Demo"
Redis_Master:
container_name: "Redis_Master"
image: "redis"
ports:
- "3000:6379"
networks:
- "Redis_Demo"
volumes:
- ./redis-0:/Test/
command:
- /Test/redis.conf
Redis_Slave_1:
container_name: "Redis_Slave_1"
image: "redis"
ports:
- "3001:6379"
networks:
- "Redis_Demo"
volumes:
- ./redis-1:/Test/
command:
- /Test/redis.conf
Redis_Slave_2:
container_name: "Redis_Slave_2"
image: "redis"
ports:
- "3002:6379"
networks:
- "Redis_Demo"
volumes:
- ./redis-2:/Test/
command:
- /Test/redis.conf
redis-sentinel:
container_name: "redis-sentinel"
image: "redis"
ports:
- "26379:26379"
command: redis-server /etc/sentinel.conf --sentinel
volumes:
- ./sentinel-0/sentinel.conf:/etc/sentinel.conf
networks:
- "Redis_Demo"
The error I keep getting on docker is that the sentinel server says the config file doesnt have write permissions.
Sentinel config file /etc/sentinel.conf is not writable: Permission denied. Exiting…