Docker部署drawio,并支持保存到github

1
2
3
4
5
6
7
8
9
10
11
version: '3.3'
services:
drawio:
container_name: draw
environment:
- TZ=Asia/Shanghai
ports:
- '7080:8080'
# volumes:
# - ./docker-entrypoint.sh:/docker-entrypoint.sh
image: jgraph/drawio
  • mkdir -p ~/app/draw && cd ~/app/draw && nano docker-compose.yml

  • sudo docker-compose up -d && sudo docker-compose logs

  • sudo docker-compose cp drawio:/docker-entrypoint.sh ./docker-entrypoint.sh

  • # 将”urlParams[‘gh’] = ‘0’;改成”urlParams[‘gh’] = ‘1’;

  • #取消volumes的注释

  • sudo docker-compose down && sudo docker-compose up -d


Docker部署drawio,并支持保存到github
https://b.limour.top/2182.html
Author
Limour
Posted on
March 29, 2023
Licensed under