diff --git a/config/env/common.js b/config/env/common.js index fbca196..e620c52 100644 --- a/config/env/common.js +++ b/config/env/common.js @@ -29,7 +29,7 @@ console.log('GET_JWT_AT_STARTUP: ', process.env.GET_JWT_AT_STARTUP) export default { // Configure TCP port. - port: process.env.PORT || 5020, + port: process.env.PORT || 5032, // Password for HTML UI that displays logs. logPass: 'test', diff --git a/config/env/production.js b/config/env/production.js index 24805ba..f12fb7c 100644 --- a/config/env/production.js +++ b/config/env/production.js @@ -12,6 +12,6 @@ export default { token: 'secret-jwt-token', database: process.env.DBURL ? process.env.DBURL - : 'mongodb://172.17.0.1:5555/bch-service-prod', + : 'mongodb://172.17.0.1:5557/bch-service-prod', env: 'prod' } diff --git a/production/docker/Dockerfile b/production/docker/Dockerfile index 7287c6d..3936b9a 100644 --- a/production/docker/Dockerfile +++ b/production/docker/Dockerfile @@ -73,8 +73,6 @@ RUN mkdir /home/safeuser/.ipfsdata #VOLUME /home/safeuser/ipfsdata #VOLUME /home/safeuser/orbitdb -EXPOSE 5010 - # Start the application. #COPY start-production.sh start-production.sh CMD ["./start-production.sh"] diff --git a/production/docker/docker-compose.yml b/production/docker/docker-compose.yml index a86bdba..40d3c5e 100644 --- a/production/docker/docker-compose.yml +++ b/production/docker/docker-compose.yml @@ -3,11 +3,11 @@ version: '3.9' services: - mongo-bch-service: + mongo-bch-wallet: image: mongo:4.2.0 container_name: mongo-bch-service ports: - - '5555:27017' # : + - '5557:27017' # : volumes: - ../data/mongodb:/data/db command: mongod --logpath=/dev/null # -- quiet @@ -24,11 +24,11 @@ services: max-file: '10' mem_limit: 1000mb links: - - mongo-bch-service + - mongo-bch-wallet ports: - - '5010:5010' # : - - '4001:4001' - - '4003:4003' + - '5032:5032' # : + - '5668:5668' + - '5669:5669' volumes: - ../data/ipfsdata:/home/safeuser/ipfs-bch-wallet-service/.ipfsdata - ./start-production.sh:/home/safeuser/ipfs-bch-wallet-service/start-production.sh diff --git a/production/docker/start-production.sh b/production/docker/start-production.sh index 586504f..7e0ec66 100755 --- a/production/docker/start-production.sh +++ b/production/docker/start-production.sh @@ -16,9 +16,6 @@ export COORD_NAME=bch-wallet-service-generic # and you must forward that subdomain to the IPFS_WS_PORT. #export CR_DOMAIN=subdomain.yourdomain.com -# Debug level. 0 = minimal info. 2 = max info. -export DEBUG_LEVEL=2 - # BCH Wallet Service Settings # Change APISERVER to point to your own installation of bch-api export APISERVER=https://api.fullstack.cash/v5/ @@ -32,7 +29,7 @@ export FULLSTACKPASS=demo # Production database connection string. -export DBURL=mongodb://172.17.0.1:5555/ipfs-service-prod +export DBURL=mongodb://172.17.0.1:5557/ipfs-service-prod # Configure REST API port export PORT=5010 @@ -41,8 +38,8 @@ export PORT=5010 export SVC_ENV=prod export IPFS_HOST=172.17.0.1 export IPFS_API_PORT=5001 -export IPFS_TCP_PORT=4001 -export IPFS_WS_PORT=4003 +export IPFS_TCP_PORT=5668 +export IPFS_WS_PORT=5669 # Set the debug level for helia-coord. 0-3. # 0 = no debug logs. 3 = maximum debug logs.