Screencast Build a Node App With Postgres and Docker Electives

  • Jon Friskics
  • 966 views

Resources

Comments

  1. Jason Lampel said

    That iTerm font/theme is gorgeous. What is it?

  2. LoganGS said

    Very helpful video, thank you all!

    After AJ cloned the project, he updated the src/server.js file and connected the app to a Postgres container instance with a specified IP.

    Is this IP address okay to be committed to the project? Will the IP address be persistent for other developers who clone the project?

  3. Ray East said

    Hey guys, great video! And thanks for the new course! IMHO, the only thing missing from the video is how to run an environment that consists of multiple services (applicable here, too) through docker-compose.

  4. Fernando Lima said

    Thx. =)

  5. Délita Makanda said

    I have 1 error with server.js Running on http://localhost:8888 /usr/src/app/src/server.js:17 if (err) throw err; ^

    Error: connect ECONNREFUSED 172.17.0.1:9000 at Object.exports._errnoException (util.js:907:11) at exports._exceptionWithHostPort (util.js:930:20) at TCPConnectWrap.afterConnect net.js:1081:14 [nodemon] app crashed - waiting for file changes before starting... How I can resolve this ?

  6. Mike Flynn said

    I have been trying to figure out how you got iTerm2 to be so interesting. Can you please share how you did that with the class?

  7. Délita Makanda said

    okay sorry for the useless comment just put in comment the line and it worked. Thanks for the good tuto !

  8. Mike Flynn said

    Specifically the highlighting of ~/Desktop/... $

  9. Robert Smith said

    It's worth pointing out that to ensure the docker command that includes mapping your local folder to the docker volume works you may need to make that folder shared with docker. This can be done by clicking on the docker whale icon -> preferences -> File sharing and add the path to that directory there. This had me stumped for a while when the command docker run --name web-server -p 9999:80 --rm -v /path-to-tutorial/nginx/html/:/usr/share/nginx/html nginx:latest returned with the error: docker: Error response from daemon: Mounts denied: ker-for-mac/osxfs/#namespaces for more info

    Hope this helps some others.

  10. Faculty

    Jon Friskics said

    @Robert Smith - good call. The Docker App on OS X is automatically configured to allow volume mounting from anything in /Users, /Volumes, /tmp, and /private, and the Desktop folder is a subfolder of /Users on OS X so things "just worked". Sorry for any confusion this causes anyone else!

  11. Robert Smith said

    @Jon - that explains my issue then as I was not mounting from a subdirectory of any of those default directories. I really enjoyed this course. I've been recommended to checkout Docker compose as a next step. Do you think you will be doing a screencast covering that or more advanced Docker features? I'd really like to see how Docker can be used in deployment in AWS for example.

    Thanks!

  12. sabdiel said

    @Délita Makanda I ran into your same issue but commenting out the line did not make the trick for me.

    Running on http://localhost:8888 /usr/src/app/src/server.js:17 if (err) throw err; ^

    Error: connect ETIMEDOUT 172.17.0.1:9000 at Object.exports._errnoException (util.js:907:11) at exports._exceptionWithHostPort (util.js:930:20) at TCPConnectWrap.afterConnect net.js:1081:14

    Suggestions?

  13. sabdiel said

    I was not able to connect to the postgres db using the gateway ip but the specific container ip.. Is there any reason why this is not working for me?

About This Screencast

In this episode, we'll apply what you learned in the Try Docker course and show you some real-world development scenarios for using Docker. We will start by working in a container running the Nginx web server, and then build a two-container application that powers a simple Node app with Postgres database.

You need to be an enrolled student in order to view this video and subscribe.

Enroll Now