Fix #1230 Docker: use 8080 port instead of 80 to reduce privilege requirements

This commit is contained in:
ztec
2023-05-26 11:01:45 +02:00
parent b06fd02dcb
commit c3b711c5cd
3 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
# Two-stage docker container for mermaid-js/mermaid-live-editor
# Build : docker build -t mermaid-js/mermaid-live-editor .
# Run : docker run --name mermaid-live-editor --publish 8080:80 mermaid-js/mermaid-live-editor
# Run : docker run --name mermaid-live-editor --publish 8080:8080 mermaid-js/mermaid-live-editor
# Start : docker start mermaid-live-editor
# Use webbrowser : http://localhost:8080
# Stop : press ctrl + c

View File

@@ -24,7 +24,7 @@ You can try out a live version [here](https://mermaid.live/).
### Run published image
```bash
docker run --publish 8000:80 ghcr.io/mermaid-js/mermaid-live-editor
docker run --publish 8000:8080 ghcr.io/mermaid-js/mermaid-live-editor
```
### To configure renderer URL

View File

@@ -1,5 +1,5 @@
server {
listen 80;
listen 8080;
server_name mermaid;
location / {
root /usr/share/nginx/html;