Please read official documentation to understand how cluster should look like
You can set mode by 2 environment variables.
SENTINEL=1- run container as a sentinelMASTER=1(work ifSENTINEL<>1) - run application as a redis master
Check Dockerfile for more details. ENV directives will guide you.