version: '2' services: redis-cluster: environment: IP: ${REDIS_CLUSTER_IP} SENTINEL: ${REDIS_USE_SENTINEL} STANDALONE: ${REDIS_USE_STANDALONE} build: context: . args: redis_version: '6.2.1' hostname: server ports: - '7000-7050:7000-7050' - '5000-5010:5000-5010'