Add $OMT_HOST support to make start-postserve (#956)

Resolve https://github.com/openmaptiles/openmaptiles/issues/955
This commit is contained in:
zstadler 2020-07-28 19:28:04 +03:00 committed by GitHub
parent 897846380a
commit 751551f910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,7 @@ endif
# Set OpenMapTiles host
OMT_HOST := http://$(firstword $(subst :, ,$(subst tcp://,,$(DOCKER_HOST))) localhost)
export OMT_HOST
# This defines an easy $(newline) value to act as a "\n". Make sure to keep exactly two empty lines after newline.
define newline

View File

@ -83,7 +83,7 @@ services:
postserve:
image: "openmaptiles/openmaptiles-tools:${TOOLS_VERSION}"
command: "postserve openmaptiles.yaml --verbose --port ${PPORT:-8090}"
command: "postserve openmaptiles.yaml --verbose --serve=${OMT_HOST:-localhost}:${PPORT:-8090}"
env_file: .env
networks:
- postgres_conn