-
Notifications
You must be signed in to change notification settings - Fork 216
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
BrowserSync with Nginx and Traefik Reverse Proxy #49
Comments
Hi @mikedoubintchik , I have Browsersync on a separate container and it turns out that it will not proxy an nginx container using a port that's not 80. I installed sudo on my nginx image, because running as root for the container isn't recommended, and now problem solved. |
@demyxco that's awesome! Could you please post your docker file and the browsersync config? |
@mikedoubintchik here's an example of mine, using Traefik as the reverse proxy. It's setup to be accessible via subdirectory instead of subdomain so I'm not generating additional LE certs. No ports are open and BrowserSync is accessible with HTTPS. You can see my Dockerfile and entrypoint script in my repo.
|
I'm unable to run BrowserSync with the Traefik reverse proxy. BrowserSync doesn't know what url to proxy and I'm not sure what to put there. I've tried every combination I can think of.
I've opened a similar ticket here with no response: BrowserSync/browser-sync#1506
And I opened the issue here with no response: https://discourse.roots.io/t/sage-9-with-docker/13476
Codebase
Built-in vanilla WordPress
Host OS
e.g. macOS Sierra
Docker info output
Docker compose file
Make sure you remove all commented services.
The text was updated successfully, but these errors were encountered: