多种方式:
- 在线 draw.io
- docker自托管
- 源码编译成前端项目直接运行
- 软件,可离线
draw.io dddd,和桌面版效果一致,只是这个是网页版
注意:如何修改中文?看右上角小地球标志!!
这里介绍docker自托管,万事不求人!
官方docker hub
https://github.com/jgraph/docker-drawio
docker pull jgraph/drawio:alpine
The Dockerfile builds from tomcat:9-jre11-slim and tomcat:9-jre8-alpine (see https://hub.docker.com/_/tomcat/))
It’s a fork of fjudith/draw.io. Image creation source code is available at jgraph/docker-drawio
docker run -it --rm --name="draw" -p 8080:8080 -p 8443:8443 jgraph/drawio:alpine
Start a web browser session to http://localhost:8080/?offline=1&https=0 or https://localhost:8443/?offline=1
携带 ?offline=1 会屏蔽云盘选项
- LETS_ENCRYPT_ENABLED: Enables Let’s Encrypt certificate instead of self-signed; default false
- PUBLIC_DNS: DNS domain to be used as certificate “CN” record; default draw.example.com
- ORGANISATION_UNIT: Organisation unit to be used as certificate “OU” record; default Cloud Native Application
- ORGANISATION: Organisation name to be used as certificate “O” record; default example inc
- CITY: City name to be used as certificate “L” record; default Paris
- STATE: State name to be used as certificate “ST” record; default Paris
- COUNTRY_CODE: Country code to be used as certificate “C” record; default FR
- KEYSTORE_PASS: “.keystore”/.jks” store password; default V3ry1nS3cur3P4ssw0rd
- KEY_PASS: Private key password; default KEYSTORE_PASS
另一个,这个是原版,但是没有看出啥区别,只是上一个更新日期更新。
docker pull fjudith/draw.io:alpine