diff --git a/Dockerfile b/Dockerfile index b45efb99..9d66d123 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,8 @@ ## global args ARG NODE_ENV=production -FROM node:18.16.1-alpine -SHELL [ "/bin/sh", "-cex" ] +FROM node:18.16.1 +SHELL [ "/bin/bash", "-cex" ] ## ENVs ENV NODE_ENV=${NODE_ENV} diff --git a/src/config.ts b/src/config.ts index a633cf32..77d79e51 100644 --- a/src/config.ts +++ b/src/config.ts @@ -184,12 +184,12 @@ export const CONFIG: Config = { isRemoteLocalNetwork: false, nodeExternalIpForRemoteLocalNetwork: '127.0.0.1', collectorSourcing: { - enabled: false, - collectorApiServerUrl: 'http://0.0.0.0:6001', + enabled: Boolean(process.env.COLLECTOR_SOURCING_ENABLED) || false, + collectorApiServerUrl: process.env.COLLECTOR_API_SERVER_URL || 'http://0.0.0.0:6001', }, serviceValidatorSourcing: { - enabled: false, - serviceValidatorUrl: 'http://0.0.0.0:9001', + enabled: Boolean(process.env.SERVICE_VALIDATOR_SOURCING_ENABLED) || false, + serviceValidatorUrl: process.env.SERVICE_VALIDATOR_URL || 'http://0.0.0.0:9001', }, ServicePointsPerSecond: 200,