Docker Community Forums

Share and learn in the Docker community.

Error: Configuration property "mongo" is not defined/ No configurations found in configuration directory:/src/config

docker

(Shufil) #1

I getting below error massage when i tried to create docker container , could plz help me , am new in docker container
and this is my Dockerfile

FROM alpine:3.4
RUN apk add --update nodejs
COPY . /src
RUN cd /src; npm install
EXPOSE 9001
CMD [ “node”, “/src/index.js” ]

WARNING: No configurations found in configuration directory:/src/config
WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment.
/src/node_modules/config/lib/config.js:202
throw new Error(‘Configuration property "’ + property + ‘" is not defined’);
^

Error: Configuration property “mongo” is not defined
at Config.get (/src/node_modules/config/lib/config.js:202:11)
at Object. (/src/app/utils/InitDatabase.js:6:26)
at Module._compile (module.js:556:32)
at loader (/src/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/src/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/src/app/models/Counter.js:1:16)
at Module._compile (module.js:556:32)
at loader (/src/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/src/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)