jgraph / docker-drawio

Dockerized draw.io based on whichever is the most secure image at the time.
GNU General Public License v3.0
1.49k stars 361 forks source link

load custom library #60

Open ricardocapeli opened 2 years ago

ricardocapeli commented 2 years ago

I would know to if like Is there any possibility to put a customized library with my own shapes to the left shape bar for all users? Every time I create a new diagram I have to add my customized library to the shape bar and each of the users they do the same thing.

Is there any way when I start the docker container it loads my library automatically and it makes my library visible to all users?

image

Command currently used to make drawio available:

docker run -d --name drawio -p 8081:8080 fjudith/draw.io:8.2.3
AneeshBhatnagar commented 1 year ago

I've been looking to do something similar too, but haven't found any options yet, unfortunately. Is there something that worked for you?

davidjgraph commented 1 year ago

Does setting custom libs in the config not work?

AneeshBhatnagar commented 1 year ago

Is there an example of how to set it up on the config? I didn't see anything sadly

vindelbo commented 1 year ago

On the windows app i can add lots of custom libs permanently (not just browser cache) but has the limitations of a windows app. I wish to self host a draw.io in docker with ALL the libs i can find. A solution where we could add url's or folder(s) to config would help. I expect that the init "boot up" of draw io is slow but that's on my docker host. All users will have all the libs and doesn't have to add them manually.

Is it possible and if so, are there any guides ?

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.