https://github.com/sogis/docker-mapcache
Docker image for MapCache WMTS. Image is available at https://hub.docker.com/r/sogis/docker-mapcache.
https://github.com/sogis/docker-mapcache
docker mapcache
Last synced: 15 days ago
JSON representation
Docker image for MapCache WMTS. Image is available at https://hub.docker.com/r/sogis/docker-mapcache.
- Host: GitHub
- URL: https://github.com/sogis/docker-mapcache
- Owner: sogis
- License: mit
- Created: 2018-05-13T16:26:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-09T11:16:36.000Z (about 1 year ago)
- Last Synced: 2024-12-09T11:37:35.343Z (about 1 year ago)
- Topics: docker, mapcache
- Language: Dockerfile
- Homepage:
- Size: 549 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-mapcache
Docker image providing a MapCache WMTS
## Build
```
docker build -t sogis/mapcache .
```
## Run
```
docker run -p 8281:8080 -v /tmp/tiles:/tiles --rm --name mapcache sogis/mapcache
```
The following environment variables may be passed:
```
-e SERVICE_URL=https://geo-t.so.ch/api # The base URL of the MapCache service
-e SOURCE_URL=https://geo-t.so.ch/api/wms # The base URL of the source WMS
-e DEMO_SERVICE_ENABLED=true # Enable the MapCache demo service (a basic map viewer)
-e APACHE_ACCESS_LOG_ENABLED=true # Print Apache access log to standard output
```
Log into container:
```
bash -c "clear && docker exec -it mapcache /bin/bash"
```
WMTSCapabilities.xml:
```
http://localhost:8281/wmts/1.0.0/WMTSCapabilities.xml
```
Demo map (if enabled):
```
http://localhost:8281/demo
```
Troubleshooting:
If MapCache logs messages like
`sqlite backend failed to open db /tiles/xy.db: unable to open database file`,
then it maybe doesn't have write permission on the tiles host directory.
In this case run the following command on the host machine:
```
sudo chmod g+w /tmp/tiles/
```
## Seeding
Please refer to the instructions in the _seed_ folder.