I'm trying to configure our stack in docker to make full tests into Codeship. Our stack is "simple":
- apache webserver
We're working with PHP and we would test our website using Selenium and Chrome driver. Problem is how could access to webserver from Selenium container?
In apache I have configured:
test.domain.com and www.test.domain.com
If I test from apache container work correctly but when try to get from Selenium container I have an resolve error because container don't know where is that domain and the container IP is not always the same IP (internal docker IPs).
If I add manually IP in /etc/hosts on the Selenium container work correctly but I don't know how could be the best way to make it, because I'm not sure if I have to use consul, etcd or other way because I was checking consul and/or etcd but I think this will not solve my problem.
Anyone have same or similar problem and solved or have any clues please?