Skip to content

Commit 9c7e777

Browse files
martinjindajiripudil
authored andcommitted
updated readme
1 parent e2b5b5f commit 9c7e777

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,17 @@ webpack:
6464
- main.css
6565
```
6666

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
76+
```
77+
6778

6879
### Asset resolvers and manifest file
6980

0 commit comments

Comments
 (0)