Getaddrinfo error in the Docker administrator

Hello!

I have problems accessing the administrator in my docker container with the laravel 5 / mysql application. I was wrong

    SQLSTATE[HY000] [2002]    php_network_getadddresses: getaddrinfo error 

Code (marked):

In my docker-compose.yml:





version: & # 39; 3 & # 39;

services:

votacion_app:
build:
context: ./web
dockerfile: Dockerfile.yml

container_name: votes_app_container
ambient:
- APACHE_RUN_USER = # 1000
volumes:
- $ {APP_PATH_HOST}: $ {APP_PTH_CONTAINER}
ports:
- 8081: 80
working_dir: $ {APP_PTH_CONTAINER}


db:
Image: mysql: 5.6.41
restart: always
ambient:
MYSQL_ROOT_PASSWORD: 1
volumes:
- $ {DB_PATH_HOST}: / var / lib / mysql


administrator:
image: administrator
restart: always
ports:
- 8082: 8080
golf course:
- db


votes_composer:
image: composer: 1.6
container_name: votes_composer_container
volumes:
- $ {APP_PATH_HOST}: $ {APP_PTH_CONTAINER}
working_dir: $ {APP_PTH_CONTAINER}
command: composer install --ignore-platform-reqs

Code (marked):

I rebuilt the application but I could not log in to adminer: https://imgur.com/a/JWVGfBA

I run in the console of my operating system that points to another port 8089 not used:

$ docker run -p 8089: 8080 -e ADMINER_DEFAULT_SERVER = db admin
The PHP 7.2.11 development server started on Thursday, November 1 at 7:00:46 2018
[Thu Nov 1 07:01:11 2018] :: ffff: 172.17.0.1: 34048 [200]: /
[Thu Nov 1 07:01:20 2018] :: ffff: 172.17.0.1: 34052 [302]: /
[Thu Nov 1 07:01:21 2018] :: ffff: 172.17.0.1: 34060 [403]: /? server = db & username = root

Code (marked):

But again, the error starts in the administrator of port 8089, but the error message was different:

https://imgur.com/a/a8qM4bt
SEMrush

It's wrong ?

Thank you!