File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,23 @@ The Docker image can be used to serve element-web as a web server. The easiest w
4141it is to use the prebuilt image:
4242
4343``` bash
44- docker run -p 80:80 vectorim/element-web
44+ docker run --rm -p 127.0.0.1:80:80 vectorim/element-web
45+ ```
46+
47+ A server can also be made available to clients outside the local host by omitting the
48+ explicit local address as described in
49+ [ docker run documentation] ( https://docs.docker.com/engine/reference/commandline/run/#publish-or-expose-port--p---expose ) :
50+
51+ ``` bash
52+ docker run --rm -p 80:80 vectorim/element-web
4553```
4654
4755To supply your own custom ` config.json ` , map a volume to ` /app/config.json ` . For example,
4856if your custom config was located at ` /etc/element-web/config.json ` then your Docker command
4957would be:
5058
5159``` bash
52- docker run -p 80:80 -v /etc/element-web/config.json:/app/config.json vectorim/element-web
60+ docker run --rm -p 127.0.0.1: 80:80 -v /etc/element-web/config.json:/app/config.json vectorim/element-web
5361```
5462
5563To build the image yourself:
You can’t perform that action at this time.
0 commit comments