Checkout the repo or just download or copy&paste the compose.yml
file to deploy a simple XYZ maps setup
including the hub service, the backend postgres database, redis caching and
swagger ui for access to the REST service interface.
The postgres data is persisted locally in a newly created directory called data
even if the stack is pulled down completely (normally just starting/stopping the stack should be enough).
Container images for arm64 and amd64 are on Docker Hub if you would just like to run it.
In the directory where compose.yml
is located run
docker compose up -d
In the directory where compose.yml
is located run
compose up -d
Once the stack is up, the following URLs should work:
Documentation: http://localhost:9000/
REST service: http://localhost:8080/hub
Swagger UI: http://localhost:8888/
Redoc UI: http://localhost:8889/
More information and documentation
https://xyzmaps.github.io/xyz-documentation/
The Makefile
is available for building locally if needed. It uses the Dockerfile
s in their respective directories.
xyz-hub/Dockerfile
uses a builder pattern that uses a build-stage to check out and build the xyzmaps/xyz-hub
project using maven. Only the resulting artifact is the used in the deployment image, so that there is no need to run the maven build locally.