Osedea / nodock

Docker Compose for Node projects with Node, MySQL, Redis, MongoDB, NGINX, Apache2, Memcached, Certbot and RabbitMQ images
http://nodock.io
MIT License
762 stars 189 forks source link

mongodb container automatically shutting down #110

Open tech-engine opened 5 years ago

tech-engine commented 5 years ago

When, I ran the instruction docker-compose up -d mongo node nginx, nginx and node are working properly but mongodb container is automatically shutting down. I tried disabling the firewall of my digital ocean droplet, when I tried to inspect inside /root/nodock/data/logs/nginx/error.log all I can see on the error logs is as below

2019/01/09 12:25:18 [error] 7#7: 1 connect() failed (113: No route to host) while connecting to upstream, client: my computer's ip, server: , request: "GET / HTTP/1.1", upstream: "http://172.18.0.3:8000/", host: "my digital ocean server's/droplet's ip" 2019/01/09 12:25:21 [error] 7#7: 1 connect() failed (113: No route to host) while connecting to upstream, client: my computer's ip, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://172.18.0.3:8000/favicon.ico", host: "my digital ocean server's/droplet ip", referrer: "my digital ocean server's/droplet ip/"