How to run codeception tests using webdriver to docker?

In docker-compose.connected yml php, mariadb, nginx and webdriver + configured network
the snippet of webdriver and the network
webdriver:
 image: selenium/standalone-chrome-debug
ports:
 - 4444:4444
 - 5900:5900
networks:
 - internal
networks:
internal:
 driver: bridge
ipam:
 driver: default
config:
 - subnet: 192.168.220.0/28


in codeception in the settings is written:
class_name: AcceptanceTester
modules:
enabled:
 - Asserts
 browser: chrome
 url: 'http://mysite.loc'
 host: webdriver


in /etc/hosts of the machine are prescribed
127.0.0.1 mysite.loc

while trying to run tests in the container is (just can not bring in memory)
unreachible IP address. check your connection, IP address and DNS, etc, etc

if the url to register a localhost or 192.168.220.1, the tests see a greeting home page with nginx, but mysite.loc can't see

understand that it's probably in DNS, sees in /etc/hosts entry, perhaps it should be duplicated in the container, now there is no way to check, maybe someone faced with such problem?
March 19th 20 at 08:41
0 answer

Find more questions by tags CodeceptionSelenium