diff --git a/Makefile b/Makefile index 39fe9e43..3c71857f 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index e2d4fc74..84041b0b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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