自建白板-开源软件excalidraw

NO.1
官方文档

git仓库

https://github.com/excalidraw/excalidraw

docker-compose配置文件

https://github.com/excalidraw/excalidraw/blob/master/docker-compose.yml

NO.2
安装部署

拉取git代码

git clone https://github.com/excalidraw/excalidraw.git

NO.3
进入项目文件

cd excalidraw/

NO.4
修改docker-compose配置文件

ports为要映射的端口号,此处修改为9006

version: "3.8"

services:
  excalidraw:
    build:
      context: .
      args:
        - NODE_ENV=development
    container_name: excalidraw
    ports:
      - "9006:80"
    restart: on-failure
    stdin_open: true
    healthcheck:
      disable: true
    environment:
      - NODE_ENV=development
    volumes:
      - ./:/opt/node_app/app:delegated
      - ./package.json:/opt/node_app/package.json
      - ./yarn.lock:/opt/node_app/yarn.lock
      - notused:/opt/node_app/app/node_modules

volumes:
  notused:

NO.5
运行

docker-compose up --build -d

img

NO.6
白板演示

NO.7
使用库

img

NO.8
第三方库

具体使用,自行引入即可

END