Настроила докер, клонировала репозиторий с гита и никак не могу разобраться с ошибкой "SQLSTATE[HY000] [2002] Connection refused (2002)"
мой файл docker-compose
version: "3.1"
services:
webserver:
image: nginx:alpine
container_name: 72-webserver
working_dir: /www
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/nginx.conf/
- ./docker/logs/error.log:/var/log/nginx/error.log
- ./docker/logs/access.log:/var/log/nginx/access.log
- ./www:/var/www
ports:
- "80:80"
php-fpm:
build: docker/php-fpm
container_name: 72-php-fpm-my
working_dir: /www
volumes:
- ./www:/var/www
- ./docker/php-fpm/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini
- ./docker/php-fpm/php.ini:/etc/php/7.2/fpm/php.ini
mysql:
image: mysql:5.7
container_name: 72-mysql
volumes:
- ./db_data:/var/lib/mysql
- ./docker/logs/mysql.log:/var/log/mysql/mysql.log
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=db
- MYSQL_USER=user
- MYSQL_PASSWORD=password
ports:
- "8082:3306"
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- mysql
ports:
- 8183:80
environment:
MYSQL_USERNAME: user
MYSQL_ROOT_PASSWORD: password
PMA_ARBITRARY: 1
мой файл .env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=8183
DB_DATABASE=novadent
DB_USERNAME=root
DB_PASSWORD=password