magento2 – Connect Redis with Docker Compose

I set up my Docker to connect to Redis. When I run the application, I get this error

Fatal Error: Uncatched CredisException: Connection to Redis Redis: 0 failed after two errors. Last error: (111) Connection refused in /var/www/html/vendor/colinmollenhour/credis/Client.php:475. Stack Trace: # 0 / var / www / html / vendor / colinmollenhour / credis / Client.php (471): Credis_Client-> connect () # 1 /var/www/html/vendor/colinmollenhour/credis/Client.php (784): Credis_Client-> connect () # 2 /var/www/html/vendor/colinmollenhour/credis/Client.php(637): Credis_Client -> __ call (& # 39; select & # 39 ;, array) # 3 / var / www / html / vendor / colinmollenhour / cache -backend-redis / Cm / Cache / Backend / Redis.php (382): Credis_Client-> select (1) # 4 / var / www / html / vendor / colinmollenhour / cache-backend-redis / Cm / Cache / Backend / Redis.php (243): Cm_Cache_Backend_Redis -> _ applyClientOptions (Object (Credis_Client)) # 5 / var / www / html / vendor / magento / zendframework1 / library / Zend / Cache.php (153))). # 6 /var/www/html/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache :: _ makeBackend (& # 39; Cm_Cache_Backen … & # 39 ;, Array, true, true ) # 7 / var / www / ht in /var/www/html/vendor/colinmollenhour/credis/Client.php on line 475

Not sure where to make changes. Maybe someone can help me here? This is the configuration I have for my docker-compose.yml

Version: & # 39; 3.0 & # 39;
Services:
Network:
Image: Alexcheng / Magento2
ports:
- "8080: 80"
- 443: 443
- 32823: 22
Left:
- db
env_file:
- env
Surroundings:
- WEB_ALIAS_DOMAIN = local.domain.com
- WEB_DOCUMENT_ROOT = / var / www / html
- PHP_DATE_TIMEZONE = EST
- PHP_DISPLAY_ERRORS = 1
- PHP_MEMORY_LIMIT = 2048M
- PHP_MAX_EXECUTION_TIME = 300
- PHP_POST_MAX_SIZE = 500M
- PHP_UPLOAD_MAX_FILESIZE = 1024M
Volume:
- "./project:/var/www/html"
container_name: web
Left:
- db
- Redis
db:
Picture: Mariadb: 10
container_name: mariadb
Volume:
- db-data: / var / lib / mysql / data
env_file:
- env
Reboot: always
ports:
- "3306: 3306"
Surroundings:
- MYSQL_ROOT_PASSWORD = root
- MYSQL_DATABASE = my_local_db
phpmyadmin:
Image: phpmyadmin / phpmyadmin
ports:
- "8580: 80"
Left:
- db
container_name: phpmyadmin
Redis:
Image: Redis: Latest
container_name: redis
Reboot: always
ports:
- "6379: 6379"
Volume:
- redis-data: / data
Volume:
db-data:
external: wrong
Redis data:
external: wrong 

And that is the content of me env.php File under App / etc /

    [
& # 39; frontName & # 39; => & # 39; admin & # 39;
],
& # 39; # 39 & crypt; => [
        'key' => 'MY_KEY_HERE'
    ],
& # 39; db & # 39; => [
        'table_prefix' => '',
        'connection' => [
            'default' => [
                'host' => 'db',
                'dbname' => 'my_local_db',
                'username' => 'user',
                'password' => 'password',
                'active' => '1'
            ]
        ]],
& # 39; resource & # 39; => [
        'default_setup' => [
            'connection' => 'default'
        ]
    ],
& # 39; x-frame-options & # 39; => & # 39; SAMEORIGIN & # 39 ;,
& # 39; # 39 & MAGE_MODE; => & # 39; Developer & # 39 ;,
& # 39; # 39 & cache; => [
        'frontend' => [
            'default' => [
                'backend' => 'Cm_Cache_Backend_Redis',
                'backend_options' => [
                    'server' => 'redis',
                    'database' => '0',
                    'port' => ''
                ]
            ],
& # 39; # 39 & page_cache; => [
                'backend' => 'Cm_Cache_Backend_Redis',
                'backend_options' => [
                    'server' => 'redis',
                    'port' => '',
                    'database' => '1',
                    'compress_data' => '0'
                ]
            ]]],
& # 39; session & # 39; => [
        'save' => 'redis',
        'redis' => [
            'host' => 'redis',
            'port' => '',
            'password' => '',
            'timeout' => '2.5',
            'persistent_identifier' => '',
            'database' => '2',
            'compression_threshold' => '2048',
            'compression_library' => 'gzip',
            'log_level' => '1',
            'max_concurrency' => '6',
            'break_after_frontend' => '5',
            'break_after_adminhtml' => '30',
            'first_lifetime' => '600',
            'bot_first_lifetime' => '60',
            'bot_lifetime' => '7200',
            'disable_locking' => '0',
            'min_lifetime' => '60',
            'max_lifetime' => '2592000'
        ]
    ],
& # 39; # 39 & cache_types; => [
        'config' => 1,
        'layout' => 1,
        'block_html' => 1,
        'collections' => 1,
        'reflection' => 1,
        'db_ddl' => 1,
        'compiled_config' => 1,
        'eav' => 1,
        'customer_notification' => 1,
        'config_integration' => 1,
        'config_integration_api' => 1,
        'full_page' => 1,
        'config_webservice' => 1,
        'translate' => 1,
        'vertex' => 1
    ],
& # 39; install & # 39; => [
        'date' => 'Wed, 09 Jan 2019 12:54:30 +0000'
    ]
];

Hope someone can help me …