赞
踩
sudo curl -L "https://github.com/docker/compose/releases/download/v2.2.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
- # 按需修改
- mkdir -p /opt/excalidraw && cd /opt/excalidraw
vim /opt/excalidraw/docker-compose.yml
- version: '3.3'
- services:
- excalidraw:
- image: 'excalidraw/excalidraw:latest'
- container_name: excalidraw
- restart: unless-stopped
- ports:
- - '3698:80'
- volumes:
- - './data:/app/web'
- networks:
- - default
- networks:
- default:
- name: excalidraw
docker load > excalidraw.tar
cd /opt/excalidraw && docker-compose up -d
直接访问:http://ip:3698,即可正常使用。
vim /opt/excalidraw/data/index.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。