https://git.ecdf.ed.ac.uk/jcumby/drawio/-/tree/v13.5.5/etc/docker
Name | Last commit | Last update |
---|---|---|
.. | ||
Our collection of docker images and docker-compose files are in jgraph/docker-drawio repository
In that repository:
- draw.io docker image that is always up-to-date with draw.io releases
- draw.io export server image which allow exporting draw.io diagrams to pdf and images
- docker-compose to run draw.io with the export server
- docker-compose to run draw.io integrated within nextcloud
- docker-compose to run draw.io with PlantUML support
- docker-compose to run draw.io self-contained without any dependency on draw.io website (with the export server, plantUml, Google Drive support, OneDrive support, and EMF conversion support (for VSDX export)
HTTPS SSL Certificate via Let's Encrypt
Prerequisites:
- A Linux machine connected to the Internet with ports 443 and 80 open
- A domain/subdomain name pointing to this machine's IP address. (e.g., drawio.example.com)
Method:
- Using jgraph/drawio docker image, run the following command
docker run -it -m1g -e LETS_ENCRYPT_ENABLED=true -e PUBLIC_DNS=drawio.example.com --rm --name="draw" -p 80:80 -p 443:8443 jgraph/drawio
Notice that mapping port 80 to container's port 80 allows certbot to work in stand-alone mode. Mapping port 443 to container's port 8443 allows the container tomcat to serve https requests directly.
Changing draw.io configuration
Method 1 (Build you custom image with setting pre-loaded)
- Edit PreConfig.js & PostConfig.js files (next to Dockerfile in debian or alpine folders)
- Build the docker image
Method 2 (Using existing running docker container)
- Edit PreConfig.js & PostConfig.js files (next to Dockerfile in debian or alpine folders)
- Copy these files to docker container
docker cp PreConfig.js draw:/usr/local/tomcat/webapps/draw/js/
docker cp PostConfig.js draw:/usr/local/tomcat/webapps/draw/js/
Method 3 (Bind configuration files into the container when started)
- This method allows changing the configuration files directly on the host without invoking any other docker commands. It can be used for testing
- Edit PreConfig.js & PostConfig.js files (next to Dockerfile in debian or alpine folders)
- From within the directory that contained the configuration files, run the following command to start docker container
- Note: self-contained docker-compose file already mount the configuration files into the container
docker run -it --rm --name="draw" --mount type=bind,source="$(pwd)"/PreConfig.js,target=/usr/local/tomcat/webapps/draw/js/PreConfig.js --mount type=bind,source="$(pwd)"/PostConfig.js,target=/usr/local/tomcat/webapps/draw/js/PostConfig.js -p 8080:8080 -p 8443:8443 fjudith/draw.io
====================================================
https://hub.docker.com/r/jonberenguer/draw.io
https://www.youtube.com/watch?v=QvYZO0h1j20
draw.io is an online diagramming web site that delivers the source in this project.
draw.io uses the mxGraph library as the base of the stack, with the GraphEditor example from mxGraph as the base of the application part. The mxGraph library build used is stored under /etc/mxgraph/mxClient.js.
License
draw.io is licensed under the GPL v3.
Development
A development guide is being started on the GitHub project wiki. There is a draw.io tag on Stack Overflow currently, please make sure any questions adhere to their guidelines for question.
The mxGraph documentation provides a lot of the docs for the bottom part of the stack. There is an mxgraph tag on SO.
Docker
docker pull jonberenguer/draw.io
docker run -p 8080:80 -d jonberenguer/draw.io
Go to: http://localhost:8080/draw.io/war/index.html?offline=1
Note: offline=1 is to run draw.io offline without any cloud storage support.
Running
The simplest way to run draw.io initially is to fork this project, publish the master branch to GitHub pages and the pages sites will have the full editor functionality (sans the integrations).
Supported Browsers
draw.io supports IE 9+, Chrome 30+, Firefox 31+, Safari versions actively patched by Apple (6.2.x, 7.1.x, 8.0.x and 9.x at time of writing), Opera 20+, Native Android browser 5.x+, the default browser in the current and previous major iOS versions (e.g. 9.x and 8.x) and Edge 20+
Tidak ada komentar:
Posting Komentar