From 0bdcb3b619fe44509278ba443ccbed7dcb3bf93d Mon Sep 17 00:00:00 2001 From: nolash Date: Wed, 10 Feb 2021 19:50:34 +0100 Subject: [PATCH] Correct host facing ports on docker compose --- apps/cic-ussd/docker/start_uwsgi.sh | 3 ++- docker-compose.yml | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/cic-ussd/docker/start_uwsgi.sh b/apps/cic-ussd/docker/start_uwsgi.sh index ac5261cb..d84664d4 100644 --- a/apps/cic-ussd/docker/start_uwsgi.sh +++ b/apps/cic-ussd/docker/start_uwsgi.sh @@ -2,4 +2,5 @@ . /root/db.sh -/usr/local/bin/uwsgi --wsgi-file /usr/local/lib/python3.8/site-packages/cic_ussd/runnable/server.py --http :9000 --pyargv "-vv" +echo "pooooort $SERVER_PORT" +/usr/local/bin/uwsgi --wsgi-file /usr/local/lib/python3.8/site-packages/cic_ussd/runnable/server.py --http :$SERVER_PORT --pyargv "-vv" diff --git a/docker-compose.yml b/docker-compose.yml index ec427275..f0581abe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -37,7 +37,7 @@ services: ports: - ${DEV_ETH_PORT_HTTP:-8545}:8545 - ${DEV_ETH_PORT_WS-8546}:8546 - - 30303 + #- 30303:30303 volumes: #- ./keys:/root/keys # stores the signing key locally - bloxberg-data:/root/.local/share/io.parity.ethereum/ @@ -373,7 +373,7 @@ services: CIC_CHAIN_SPEC: $CIC_CHAIN_SPEC CELERY_BROKER_URL: $CELERY_BROKER_URL CELERY_RESULT_URL: $CELERY_RESULT_URL - SERVER_PORT: 80 + SERVER_PORT: 8000 depends_on: - eth - postgres @@ -383,6 +383,8 @@ services: condition: on-failure volumes: - contract-config:/tmp/cic/config/:ro + ports: + - ${HTTP_PORT_CIC_ETH:-63314}:8000 command: - /bin/bash - -c @@ -471,9 +473,9 @@ services: DATABASE_NAME: cic_ussd DATABASE_ENGINE: postgresql DATABASE_DRIVER: psycopg2 - SERVER_PORT: 9000 + SERVER_PORT: 8000 ports: - - 9000:8082 + - ${HTTP_PORT_CIC_USSD:-63315}:8000 depends_on: - postgres - redis