Docker and Browsersync

Hi, I’m developing my CSS and JS using gulp and BrowserSync to have a live reload of the site when I save changes on my files.

My issue is that BrowserSync is creating a server on localhost:3000 instead of accessing the Docker container. To do this, I can use the “proxy” option of BrowserSync (as you can see in this stackoverflow answer)

The module docs also say that.

gulp.task('browser-sync', function() {
    browserSync.init({
        proxy: "yourlocal.dev"
    });
});

But I can’t find the docker-compose.yml file for my project (not sure where it’s created), or the hostname/port. I’m trying to use the URL I use to access the dev site (mysitecom.local) but it doesn’t work.

Any idea what can I do?

Hi @dgrueda . I’m sorry for the wait and issues here. While I don’t have resources to provide on how to resolve this, I think this would make for a fantastic feature request to integrate right within DevKinsta.