Tag: node.js

Intermittent slow response from Dockerized NodeJS app

I have a simple NodeJS app on top of ElasticSearch (which runs on a separate machine). When I start the app using pm2 and sequentially do some random requests, performance is fine. However, when I Dockerize the app, about one in ten responses is very slow (about 5 seconds instead of 50 ms). This is […]

Ethercalc not launching on Docker and c9.io

Whenever i am trying to launch ethercalc using docker or c9.io(ubuntu instance). It is not working and throwing an error as shown below. But it is running locally without any issues in Mac. ethercalc Please connect to: http://a36thninja-ether-4985966:8080/ Starting backend using webworker-threads /home/ubuntu/.nvm/versions/node/v4.6.1/lib/node_modules/ethercalc/node_modules/nodemailer/lib/mailer/index.js:31 compile: [(…args) => this._convertDataImages(…args)], ^^^ SyntaxError: Unexpected token … at exports.runInThisContext (vm.js:53:16) […]

utility for use docker instead of classic setup ( wamp, mamp, lamp)

I have a question. I’m a web developper since 5 years and i develop locally with the classic setup that is to say wamp/mamp/lamp under the OS and i use git also. For ship the source code, i push the code to the git server and i pull it from my server of production. I […]

Getting “ECONNREFUSED” error after booting my computer. I'm using an express server and I'm trying to see that i can make requests

I’m working on a project and I have seeded some data. But when I try to do any request to my localhost I get this error: // 20170624132844 // http://localhost:4310/campuses { “code”: “ECONNREFUSED”, “errno”: “ECONNREFUSED”, “syscall”: “connect”, “address”: “”, “port”: 5432 }

Configuring application in docker container to access other containers

How can you configure an app deployed as a docker container to reference components running in other containers? I have a node app that requires postgresql. I have a node config file that contains all the connection information for postgres. In a non-docker deployment, you simply set the required config values (e.g. IP address of […]

Merge container files when using docker-sync

I am using docker-sync to speed up the dev environment file updates on my node.js application. Right now I am trying to cache npm install command by moving package.json to the image and running npm install when the image is created. Dockerfile: ADD ./package.json /app/user/ RUN npm install Then I use the following configuration for […]

Can i use watch in nodemon or pm2 in docker with file in shard drive?

I’m using Docker for windows and shared drive. in linux container, setup my express server using nodemon and I edited my source file from windows. but after file changed, watch doesn’t work. PM2 is same. How can i use watch event?

ip address for google app engine node js docker application

This is related to the stackoverflow question here: Run Websocket on GAE and also follows from a previous question I asked here: Google app engine: IP of docker custom runtime container, node.js. As per the second question, I am trying to deploy a version of mozilla’s browserquest in a production google custom runtime nodejs environment […]

Scripts with dialog from Docker container

I have a docker container which intentionally should serve node.js environment. Something similar to configuration described in this article. But I want to create my own project. Is there are a way to run npm init and generate package.json with container? If I run this command it fails on first question. How can I answer […]

Hapi.js is not listening to subdomains?

I am running Hapi.js on Digital Ocean using the official Node.js-Dockerimage. I created the corresponding A, AAA and CNAME nameserver settings successfully. When I am now trying to access the website on the main domain, it works just fine. As soon as I try to access the “www”-subdomain, e.g. www.mydomain.com, I get “ERR_CONNECTION_CLOSED” in Chrome. […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.