Allow custom ports for postserve/tileserver (#887)

* `make start-postserve PPORT=8000`
* `make start-tileserver TPORT=9000`

Note that both ports need to be the same on host and inside the docker container because the services include a URL to the tiles as part of their manifest.
This commit is contained in:
Yuri Astrakhan
2020-05-26 15:19:52 -04:00
committed by GitHub
parent 495e8bd370
commit dbf130deb0
2 changed files with 16 additions and 9 deletions

View File

@@ -71,11 +71,11 @@ services:
postserve:
image: "openmaptiles/openmaptiles-tools:${TOOLS_VERSION}"
command: postserve openmaptiles.yaml --verbose
command: "postserve openmaptiles.yaml --verbose --port ${PPORT:-8090}"
env_file: .env
networks:
- postgres_conn
ports:
- "8090:8090"
- "${PPORT:-8090}:${PPORT:-8090}"
volumes:
- .:/tileset