Git Product home page Git Product logo

Comments (2)

jwe74 avatar jwe74 commented on May 28, 2024

I have the same problem as well. Here's the log when with "docker logs CONTAINER_ID"

MongoDB shell version: 2.6.10 connecting to: test 2017-06-14T18:32:42.239+0000 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused 2017-06-14T18:32:42.240+0000 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146 exception: connect failed

I'm running Ubuntu 17.04 Zesty.

from docker-alerta.

satterly avatar satterly commented on May 28, 2024

The problem here is that the docker-entrypoint.sh script was looking for a MONGO_URI environment variable which doesn't automatically exist when linking (as opposed to using the example docker-compose.yml file) so you need to define it on the command line like this ...

$ export MONGO_URI=mongodb://db:27017/monitoring
$ docker run --name alerta-web -e MONGO_URI=$MONGO_URI --link alerta-db:db \
-d -p <port>:80 alerta/alerta-web

I've updated the README to reflect this in #27

from docker-alerta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.