doc/administration/integration/diagrams_net.md
{{< details >}}
{{< /details >}}
{{< history >}}
{{< /history >}}
Use the diagrams.net integration to create and embed SVG diagrams in wikis. The diagram editor is available in both the plain text editor and the rich text editor.
This integration is available to all GitLab.com users and requires no additional configuration.
For GitLab Self-Managed and GitLab Dedicated, integrate with either the free diagrams.net website, or host your own diagrams.net site in offline environments.
To set up the integration:
After completing the integration, the diagrams.net editor opens with the URL you provided.
You can set up your own diagrams.net server to generate diagrams. For GitLab Self-Managed offline installations, this step is required.
To run a diagrams.net container in Docker, run the following command:
docker run -it --rm --name="draw" -p 8006:8080 -p 8443:8443 jgraph/drawio
[!note] Use port
8006for the HTTP endpoint. You should avoid the default port8080because Puma listens on port8080for metrics.
Note the hostname of the server running the container. You use this hostname as the diagrams.net URL when you enable the integration.
For more information, see run your own diagrams.net server with Docker.
https://embed.diagrams.net.