title: How to use redis username with password in docker-compose?
body: <p>Currently I have the below service configured in my <code>docker-compose</code> which works correct with redis password. However, I would like to use also redis username together with password. Is there any similar command to <code>requirepass</code> or something else to enable <code>username</code>?</p>
  <pre><code>version: '3.9'
  volumes:
    redis_data: {}
  networks:
    ee-net:
      driver: bridge
  services:
    redis:
      image: 'redis:latest'
      container_name: redis
      hostname: redis
      networks:
        - ee-net
      ports:
        - '6379:6379'
      command: '--requirepass redisPassword'
      volumes:
        - redis_data:/data
  </code></pre>