自建画图-开源软件draw.io

NO.1
官方文档

git仓库

https://github.com/jgraph/drawio

官方网站

https://www.diagrams.net/

dicker git地址

https://github.com/fjudith/docker-draw.io

配置文件地址

https://github.com/fjudith/docker-draw.io/blob/master/docker-compose.yml

NO.2
安装配置

新建docker-compose.yml

nano docker-compose.yml

NO.3
写入代码

#This compose file adds Draw.io https://draw.io to your stack
version: '3.5'
services:
  drawio:
    image: fjudith/draw.io
    container_name: drawio
    restart: unless-stopped
    ports:
      - 9002:8080
      - 8443:8443
    environment:
      PUBLIC_DNS: domain
      ORGANISATION_UNIT: unit
      ORGANISATION: org
      CITY: city
      STATE: state
      COUNTRY_CODE: country
      DRAWIO_GITLAB_URL: http://mygitlab.net
      DRAWIO_GITLAB_ID: change_to_your_app_id
    healthcheck:
      test: ["CMD-SHELL", "curl -f http://domain:8080 || exit 1"]
      interval: 1m30s
      timeout: 10s
      retries: 5
      start_period: 10s

NO.4
运行

docker-compose up -d

img

NO.5
访问

ip:端口

END.