# 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://occdn.limour.top/2670.html
Author
Limour
Posted on
March 29, 2023
Licensed under
【杂感】生物质机器人怪谈 Previous
【AIGC：PPT】GPT-3.5自动化PPT工作流 Next

#### Search

Keyword