I'm having trouble with the setup of sentinel on docker. Everything I've found looks old and deprecated and having issues when I'm trying to run.
I'm using docker-compose with code like this :
redis-master
image: redis:4.0.11-alpine
volumes:
- broker-data:/data
networks:
- db
ports:
- 6379:6379
redis-slave:
image: redis:4.0.11-alpine
command:
- redis-server --slaveof redis-master 6379
volumes:
- broker-data:/data
networks:
- db
links:
- redis-master
sentinel:
build: ./sentinel
volumes:
- broker-data:/data
networks:
- db
ports:
- 26379:26379
links:
- redis-slave
- redis-master
And sentinel from https://github.com/mustafaileri/redis-cluster-with-sentinel/tree/master/sentinel
This part seems to run correctly but Celery (onboarded in Django) doesn't found it.
CELERY_BROKER_URL="sentinel://sentinel:26379/0"
and I tried to change the transport options, but always have No master found for None
error when starting django with docker-compose.
CELERY_BROKER_TRANSPORT_OPTIONS={"my_master":"redis-master", "master_name":"redis-master"}
Any idea about a mistake I made, or good tips to use sentinel on django with docker ?
Django 2.2.8
Celery 4.3.0