This is my docker-compose.yml
version: \'2\'
services:
wordpress:
image: wordpress
ports:
- \"8080:80\"
environment:
WORDPRESS_DB_P
As said earlier you should add
depends_on:
- db
but after this I still getting message about connection problem. And only this clear problem - second option:
networks:
local:
This solve error PHP Warning: mysqli::__construct(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in Standard input code on line 22