Add docker-compose.yml

This commit is contained in:
Nikolay Korotkiy 2019-09-27 12:29:13 +03:00
parent 62706b39a2
commit b970d46d1a
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5
2 changed files with 24 additions and 0 deletions

View File

@ -161,6 +161,18 @@ certificates and files in `<host cert dir>` so that you can access the server vi
docker run --rm -p 80:80 443:443 -v <host tile dir>:/tilesets -v <host cert dir>:/certs/ consbio/mbtileserver -c /certs/localhost.pem -k /certs/localhost-key.pem -p 443 --redirect
```
Alternately, use `docker-compose` to run:
```
docker-compose up -d
```
To reload the server:
```
docker exec -it mbtileserver sh -c "kill -HUP 1"
```
## Specifications
- expects mbtiles files to follow version 1.0 of the [mbtiles specification](https://github.com/mapbox/mbtiles-spec). Version 1.1 is preferred.

12
docker-compose.yml Normal file
View File

@ -0,0 +1,12 @@
version: '3'
services:
mbtileserver:
image: consbio/mbtileserver:latest
container_name: mbtileserver
entrypoint: /mbtileserver --enable-reload
restart: always
ports:
- 8080:8000
volumes:
- ./mbtiles/testdata:/tilesets