mirror of
https://github.com/mermaid-js/mermaid-live-editor.git
synced 2025-03-18 17:16:21 +03:00
Fix #1230 Docker: use 8080 port instead of 80 to reduce privilege requirements
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Two-stage docker container for mermaid-js/mermaid-live-editor
|
# Two-stage docker container for mermaid-js/mermaid-live-editor
|
||||||
# Build : docker build -t 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
|
# Start : docker start mermaid-live-editor
|
||||||
# Use webbrowser : http://localhost:8080
|
# Use webbrowser : http://localhost:8080
|
||||||
# Stop : press ctrl + c
|
# Stop : press ctrl + c
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ You can try out a live version [here](https://mermaid.live/).
|
|||||||
### Run published image
|
### Run published image
|
||||||
|
|
||||||
```bash
|
```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
|
### To configure renderer URL
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 8080;
|
||||||
server_name mermaid;
|
server_name mermaid;
|
||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
|||||||
Reference in New Issue
Block a user