xyz-containers
所属分类:collect
开发工具:Makefile
文件大小:0KB
下载次数:0
上传日期:2023-06-30 09:40:01
上 传 者:
sh-1993
说明: 为docker和podman编写文件,以运行XYZ地图中心的本地版本,构建容器映像和部署编排,
(compose file for docker and podman to run a local version of XYZ maps hub, build container images and deployment orchestration,)
文件列表:
Makefile (1244, 2023-12-11)
compose.yml (1130, 2023-12-11)
xyz-corsproxy/ (0, 2023-12-11)
xyz-corsproxy/Caddyfile (222, 2023-12-11)
xyz-corsproxy/Dockerfile (54, 2023-12-11)
xyz-docs/ (0, 2023-12-11)
xyz-docs/Dockerfile (286, 2023-12-11)
xyz-hub/ (0, 2023-12-11)
xyz-hub/Dockerfile (592, 2023-12-11)
xyz-postgres/ (0, 2023-12-11)
xyz-postgres/Dockerfile (117, 2023-12-11)
# XYZ maps - containers
## Deploying
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).
## Images
Container images for arm64 and amd64 are on [Docker Hub](https://hub.docker.com/u/xyzmaps) if you would just like to run it.
### Run using docker
In the directory where `compose.yml` is located run
```
docker compose up -d
```
### Run using podman
In the directory where `compose.yml` is located run
```
compose up -d
```
## Try it
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/
## Documentation (WIP)
More information and documentation
https://xyzmaps.github.io/xyz-documentation/
## Build it
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.
近期下载者:
相关文件:
收藏者: