Skip to content

Commit 2a07d5b

Browse files
committed
Provide and explain docker run examples with and without confinement to localhost
Signed-off-by: Richard Gibson <richard.gibson@gmail.com>
1 parent 23ff76f commit 2a07d5b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,14 @@ it is to use the prebuilt image:
177177
docker run -p 127.0.0.1:80:80 vectorim/element-web
178178
```
179179

180+
A server can also be made available to clients outside the local host by omitting the
181+
explicit local address as described in
182+
[docker run documentation](https://docs.docker.com/engine/reference/commandline/run/#publish-or-expose-port--p---expose):
183+
184+
```bash
185+
docker run -p 80:80 vectorim/element-web
186+
```
187+
180188
To supply your own custom `config.json`, map a volume to `/app/config.json`. For example,
181189
if your custom config was located at `/etc/element-web/config.json` then your Docker command
182190
would be:

0 commit comments

Comments
 (0)