José Victor
José Victor

Reputation: 335

ERR_CONNECTION_RESET - Same with service Adonis js runing inside docker

I finished install adonis js with cli according to the documentation, but, I can't access the main page as several examples in web. When I try access, I get ERR_CONNECTION_RESET.

Obs : The port is free, i already changed the .env file ;/

I have on the same container an app with vue.js and he works perfectly !

Sorry by english, i am brazilian no time of translate ;/

[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: /var/www/html/node_modules/yardstick/app/**/*     /var/www/html/node_modules/yardstick/bootstrap/**/*     /var/www/html/node_modules/yardstick/config/**/* .env
[nodemon] starting `node server.js`
info adonis:framework +0ms serving app on localhost:9210

Upvotes: 0

Views: 1055

Answers (1)

Ricardo Branco
Ricardo Branco

Reputation: 6079

The problem is that the daemon is running on localhost:9210 inside the Docker container. You must use 0.0.0.0:9210. A Docker container usually has 2 interfaces: the loopback interface and eth0.

Upvotes: 2

Related Questions