On native Debian, I develop the following way:
Webpack dev server:
devServer: {
host: "192.168.XX.XX",
port: 8080,
disableHostCheck: true,
inline: true
}
Starting the webpack dev server manually by running npm run dev Files are now accessible by 192.168.XX.XX:8080/path/to/file
In my Apache configuration, I have defined a reverse proxy to make the files accessible by clean paths: my-host.dev/node/path/to/file
Apache config:
ProxyPass /node/ http://192.168.XX.XX:8080/ retry=0 timeout=5
ProxyPassReverse /node/ http://192.168.XX.XX:8080/
If I want the same basic behaviour in my ddev container, do I need to define a new service? Or how can I route that port that webpack generated files are accessible by mysitename.ddev.site/path/to/file or at least mysitename.ddev.site:8080/path/to/file?