jgraph / docker-drawio

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

Open file on startup? #74

Closed miketwo closed 1 month ago

miketwo commented 2 years ago

Using the docker image, I can create a locally-running server with the following:

docker run -it --rm --name="draw" -p 8080:8080 -p 8443:8443 jgraph/drawio

Once up, I can choose to open an existing file, navigate to my local Drawio file, and it opens successfully. Great.

Is it possible to do this automatically?

I.e., if I mount the file into the container with

... -v $(pwd)/diagrams:/data ...

... is there a way to specify arguments or environment variables or anything to the container to have the drawing open on startup, without having to navigate the file system and find it? I searched the docker_entrypoint but didn't see anything that looked like it would help.

(And if it's not possible, can I request this as a feature?)

github-actions[bot] commented 3 months 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.