
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://travis-ci.org/plantuml/plantuml-server.png?branch=master](https://travis-ci.org/plantuml/plantuml-server) https://images.microbadger.com/badges/image/plantuml/plantuml-server.svg](https://microbadger.com/images/plantuml/plantuml-server "Get your own image badge on microbadger.com") https://img.shields.io/docker/pulls/plantuml/plantuml-server.svg](https://hub.docker.com/r/plantuml/plantuml-server/) PlantUML Server is a web application to generate UML diagrams on-the-fly.
To know more about PlantUML, please visit [***]
Just run:
mvn jetty:run
The server is now listing to http://localhost:8080/plantuml. In this way the server is run on an embedded jetty server.
You can specify the port at which it runs:
mvn jetty:run -Djetty.port=9999
You can run Plantuml with jetty or tomcat container
docker run -d -p 8080:8080 plantuml/plantuml-server:jetty docker run -d -p 8080:8080 plantuml/plantuml-server:tomcat
The server is now listing to http://localhost:8080.
To run plantuml using different base url, change the docker-compose.yml file:
args: BASE_URL: plantuml
And run docker-compose up --build. This will build a modified version of the image using
the base url /plantuml, e.g. http://localhost/plantuml
You can apply some option to your PlantUML server with environement variable.
If you run the directly the jar, you can pass the option with -D flag
java -D THE_ENV_VARIABLE=THE_ENV_VALUE -Djetty.contextpath=/ -jar target/dependency/jetty-runner.jar target/plantuml.war
or
mvn jetty:run -D THE_ENV_VARIABLE=THE_ENV_VALUE -Djetty.port=9999
If you use docker, you can use the -e flag:
docker run -d -p 8080:8080 -e THE_ENV_VARIABLE=THE_ENV_VALUE plantuml/plantuml-server:jetty
You can set all the following variables:
PLANTUML_LIMIT_SIZE
4096GRAPHVIZ_DOT
/usr/local/bin/dot or /usr/bin/dotPLANTUML_STATS
on to enable statistics reportoffHTTP_AUTHORIZATION
proxy endpoint, the value of HTTP_AUTHORIZATION will be used to set the HTTP Authorization headernullALLOW_PLANTUML_INCLUDE
!include processing which can read files from the server into diagrams. Files are read relative to the current working directory.falseThis method uses maven to run the application. That requires internet connectivity. So, you can use following command to create a self-contained docker image that will "just-work".
Note: Generate the WAR (instructions further below) prior to running "docker build"
docker image build -t plantuml-server . docker run -d -p 8080:8080 plantuml-server
The server is now listing to http://localhost:8080/plantuml.
You may specify the port in -p Docker command line argument.
To build the war, just run:
mvn package
at the root directory of the project to produce plantuml.war in the target/ directory.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 datacore/plantuml-server 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: