From 751551f910295465a103981863a5ead139fa195e Mon Sep 17 00:00:00 2001 From: zstadler Date: Tue, 28 Jul 2020 19:28:04 +0300 Subject: [PATCH] Add `$OMT_HOST` support to `make start-postserve` (#956) Resolve https://github.com/openmaptiles/openmaptiles/issues/955 --- Makefile | 1 + docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 39fe9e4..3c71857 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 e2d4fc7..84041b0 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