Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running docker-compose with network_mode: "host"? #25

Open
test-pilott opened this issue Nov 14, 2019 · 0 comments
Open

Running docker-compose with network_mode: "host"? #25

test-pilott opened this issue Nov 14, 2019 · 0 comments

Comments

@test-pilott
Copy link

I am having trouble getting jest-puppeteer-docker to connect to an https site I have deployed locally with a predefined /etc/hosts entry.

The /etc/hosts entry on my host machine is 127.0.0.1 local.my-domain.com, therefore the site is accessible at https://local.my-domain.com. I cannot simply use the suggested host.docker.internal because my site will not work properly with it.

One of the solutions would be to set network_mode: "host" in the docker-chromium > docker-compose.yml. However, once I set this, jest-puppeteer-docker gives up after 5 failed attempts to connect to Chrome within the docker container.

Any suggestions on how to properly do this?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant