You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,17 @@ webpack:
64
64
- main.css
65
65
```
66
66
67
+
#### Public URL (e.g. Docker usage)
68
+
69
+
Dev-server might have different URLs for different access points. For example, when running in Docker Compose setup, the Nette application accesses it via the internal Docker network, while you access it in the browser via the exposed port. For this, you can set up a different `publicUrl`.
70
+
71
+
```yaml
72
+
webpack:
73
+
devServer:
74
+
url: http://webpack-dev-server:3000 # URL over internal Docker network
75
+
publicUrl: http://localhost:3030 # exposed port from the dev-server container
0 commit comments