sameersbn / docker-bind

Dockerize BIND DNS server with webmin for DNS administration
MIT License
913 stars 333 forks source link

Setup docker bind to allow a selenium container to see an nginx container. #56

Closed rquadling closed 5 years ago

rquadling commented 6 years ago

Hi.

I'll say straight away, I don't know or understand bind and/or linux networking.

My requirement is to have the browser that runs inside a selenium container have access to an nginx server running in another container. We are using selenium for some of our automated testing and am trying to make things a little simpler for the developers who need to build and run the end-to-end testing.

It sounds simple enough. But I don't even know how to ask the question properly.

Currently (without the bind container), we have to manually add every domain and subdomain to the links section in our docker-compose.yml file for the nginx service for the browser inside the selenium container to see things.

This would be great, but we want to use a wildcard subdomain sort of thing, so any subdomain of test.local (for example) would be sent to the nginx container, where nginx picks up the request and uses PHP-FPM to handle it. The PHP code deals with extracting the right processing for the subdomain. A multi-tenanted application with subdomain partitioning. Not particularly unusual.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.