title: Laravel/docker-compose/redis - Class 'Redis' not found
body: <p>This project was set up by another team and I'm unable to get passed this one error. Using PHP 7.2 and Laravel 6.2. My <code>docker-compose.yml</code>:</p>
  
  <pre><code>redis:
      image: redis
      command: ["redis-server", "--appendonly", "yes","--requirepass","Redis.123"]
      volumes:
        - redis-data:/data
      container_name: redis-master
      ports:
        - "6379:6379"
  </code></pre>
  
  <p>and <code>database.php</code>:</p>
  
  <pre><code>'redis' =&gt; [
  
          'client' =&gt; env('REDIS_CLIENT', 'phpredis'),
  
          'options' =&gt; [
              'cluster' =&gt; env('REDIS_CLUSTER', 'redis'),
              'prefix' =&gt; env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
          ],
  
          'default' =&gt; [
              'url' =&gt; env('REDIS_URL'),
              'host' =&gt; env('REDIS_HOST', '127.0.0.1'),
              'password' =&gt; env('REDIS_PASSWORD', null),
              'port' =&gt; env('REDIS_PORT', 6379),
              'database' =&gt; env('REDIS_DB', 0),
          ],
  
          'cache' =&gt; [
              'url' =&gt; env('REDIS_URL'),
              'host' =&gt; env('REDIS_HOST', '127.0.0.1'),
              'password' =&gt; env('REDIS_PASSWORD', null),
              'port' =&gt; env('REDIS_PORT', 6379),
              'database' =&gt; env('REDIS_CACHE_DB', 1),
          ],
  
      ]
  </code></pre>
  
  <p>The container is up and running and "Ready to accept connections". This error is in my stack trace if I attempt to hit the base url or any endpoints. I have aliased redis in <code>app.php</code>: <code>'RedisManager' =&gt; Illuminate\Support\Facades\Redis::class,</code> as others have recommended. Can anyone see anything obvious that is missing or could cause this? Predis is installed in the <code>composer.json</code>: <code>"predis/predis": "^1.1",</code>, but not set in the config. If I changed phpredis to predis I get the error <code>development.ERROR:</code>SELECT<code>failed: NOAUTH Authentication required. [tcp://127.0.0.1:6379]</code>. </p>