mirror of
https://github.com/consbio/mbtileserver.git
synced 2024-09-11 07:15:24 +03:00
Merge pull request #79 from sikmir/add-docker-compose
Add docker-compose.yml
This commit is contained in:
commit
051fc2412a
12
README.md
12
README.md
@ -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
12
docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user