From 7ac4b7aac4201a6d98d26f2b1eeed7ed5fffa402 Mon Sep 17 00:00:00 2001 From: Abdulrahman Semrie Date: Wed, 27 Mar 2019 22:17:26 +0300 Subject: [PATCH] Use APP_PORT if provided --- config.py | 2 +- docker-compose-dev.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 35cd68e..ac88ff1 100644 --- a/config.py +++ b/config.py @@ -39,7 +39,7 @@ GRPC_PORT = "5003" try: - MOZI_URI = os.environ["MOZI_URI"] + MOZI_URI = f"{os.environ['MOZI_URI']}:{APP_PORT}" except KeyError: MOZI_URI = "http://locahost:8080" diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index 8601a76..df83bfb 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -23,7 +23,7 @@ services: - SCAN_INTERVAL=86400 - APP_PORT=${APP_PORT} - SERVICE_ADDR=${SERVICE_ADDR} - - MOZI_URI=http://localhost:8080 + - MOZI_URI=http://localhost working_dir: /home/root/mozi_snet_service