diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 6cfed85..9975355 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -22,7 +22,11 @@ services: environment: - REDIS_PASSWORD=${REDIS_PASSWORD} # command: /bin/sh -c "redis-server --requirepass ${REDIS_PASSWORD}" - command: redis-server --requirepass $REDIS_PASSWORD + # command: redis-server --requirepass $REDIS_PASSWORD + command: + - /bin/sh + - -c + - redis-server --requirepass "$${REDIS_PASSWORD:?REDIS_PASSWORD variable is not set}" ports: - 6379:6379