1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-09-27 14:39:01 +00:00

Added docker-compose file to build plantuml-server with a custom base url.

This commit is contained in:
Michael Rausch 2019-05-07 19:06:08 +02:00
parent 3c3c64b3d6
commit e276733481
2 changed files with 30 additions and 8 deletions

View File

@ -44,6 +44,15 @@ docker run -d -p 8080:8080 plantuml/plantuml-server:tomcat
The server is now listing to [http://localhost:8080](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
How to set PlantUML options
=================================

13
docker-compose.yml Normal file
View File

@ -0,0 +1,13 @@
version: '3.3'
services:
plantuml-server:
build:
context: .
dockerfile: Dockerfile.jetty
args:
BASE_URL: plantuml
image: plantuml/plantuml-server:local
container_name: plantuml-server
ports:
- 8080:8080