Skip to content

Commit 23ff76f

Browse files
committed
Specify a local address when exposing ports with Docker
cf. https://docs.docker.com/engine/reference/commandline/run/#publish-or-expose-port--p---expose Signed-off-by: Richard Gibson <richard.gibson@gmail.com>
1 parent e70c52e commit 23ff76f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,15 @@ The Docker image can be used to serve element-web as a web server. The easiest w
174174
it is to use the prebuilt image:
175175

176176
```bash
177-
docker run -p 80:80 vectorim/element-web
177+
docker run -p 127.0.0.1:80:80 vectorim/element-web
178178
```
179179

180180
To supply your own custom `config.json`, map a volume to `/app/config.json`. For example,
181181
if your custom config was located at `/etc/element-web/config.json` then your Docker command
182182
would be:
183183

184184
```bash
185-
docker run -p 80:80 -v /etc/element-web/config.json:/app/config.json vectorim/element-web
185+
docker run -p 127.0.0.1:80:80 -v /etc/element-web/config.json:/app/config.json vectorim/element-web
186186
```
187187

188188
To build the image yourself:

0 commit comments

Comments
 (0)