Docker hosts problem
I have 3 docker-containers:
php:7.1-fpm (php) and
I have php-script for connect to the database and output result for connected status: failed | success.
I use linked container in php-fpm container with name
If php-script run in php-fpm (via nginx) - connect to the database failed, because host
db is unknown.
If php-script run in console (in php-fpm container) - connect to the database success.