From 437f284622e1dac8b276a375491ad10cb8603b68 Mon Sep 17 00:00:00 2001 From: Vijay Date: Tue, 4 Apr 2023 12:42:17 +0530 Subject: [PATCH] fix: changed exposed ports configuration to make the stack usable along with local services --- docker-compose.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9a719208..ceda6efb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,8 +11,8 @@ services: image: mojaloop/central-ledger:${CENTRAL_LEDGER_VERSION} container_name: central-ledger command: sh -c "/opt/app/config-modifier/run.js /opt/app/config/default.json /opt/app/config-modifier/configs/central-ledger.js /opt/app/config/default.json && /opt/app/wait4/wait4.js central-ledger && node src/api/index.js" - ports: - - "3001:3001" + # ports: + # - "3001:3001" volumes: - ./docker/wait4:/opt/app/wait4 - ./docker/config-modifier:/opt/app/config-modifier @@ -114,7 +114,7 @@ services: image: mysql/mysql-server container_name: mysql ports: - - "3307:3306" + - "3306:3306" volumes: # Note: this fixes the permissions issue, but docker-compose up will fail on first attempt - ./docker/sql-init/:/docker-entrypoint-initdb.d/ @@ -149,8 +149,8 @@ services: condition: service_started central-ledger: condition: service_started - ports: - - "3002:3002" + # ports: + # - "3002:3002" volumes: - ./docker/config-modifier:/opt/app/config-modifier healthcheck: @@ -168,8 +168,8 @@ services: image: mojaloop/ml-api-adapter:${ML_API_ADAPTER_VERSION} container_name: ml-api-adapter command: sh -c "/opt/app/config-modifier/run.js /opt/app/config/default.json /opt/app/config-modifier/configs/ml-api-adapter.js /opt/app/config/default.json && /opt/app/wait4/wait4.js ml-api-adapter && node src/api/index.js" - ports: - - "3000:3000" + # ports: + # - "3000:3000" volumes: - ./docker/wait4:/opt/app/wait4 - ./docker/config-modifier:/opt/app/config-modifier @@ -197,8 +197,8 @@ services: simulator: image: mojaloop/simulator:v11.1.3 container_name: simulator - ports: - - "8444:8444" + # ports: + # - "8444:8444" environment: - LOG_LEVEL=info - TRANSFERS_ENDPOINT=http://ml-api-adapter:3000 @@ -222,9 +222,9 @@ services: image: mojaloop/account-lookup-service:${ACCOUNT_LOOKUP_SERVICE_VERSION} container_name: account-lookup-service command: sh -c "/opt/account-lookup-service/config-modifier/run.js /opt/account-lookup-service/config/default.json /opt/account-lookup-service/config-modifier/configs/account-lookup-service.js /opt/account-lookup-service/config/default.json && /opt/account-lookup-service/wait4/wait4.js account-lookup-service && npm run migrate && node src/index.js server" - ports: - - "4001:4001" - - "4002:4002" + # ports: + # - "4001:4001" + # - "4002:4002" environment: - LOG_LEVEL=debug - ALS_DISPLAY_ROUTES=false @@ -254,7 +254,7 @@ services: image: mysql/mysql-server container_name: mysql-als ports: - - "3306:3306" + - "3307:3306" volumes: - ./docker/sql-als-init/:/docker-entrypoint-initdb.d/ environment: