DevOps with Docker and Node.js/Express: Development to production workflow + mongo + redis

DevOps with Docker and Node.js/Express: Development to production workflow + mongo + redis

29.370 Lượt nghe
DevOps with Docker and Node.js/Express: Development to production workflow + mongo + redis
Welcome to the godfather of all docker courses!!!! In this course we are going to master the core fundamentals of docker by building a Node/Express app with a Mongo & Redis database. We'll start off by keeping things simple with a single container, and gradually add more complexity to our app by integrating a Mongo container, and then finally adding in a redis database for authentication. We'll learn how to do things manually with the cli, then move on to docker compose. We'll focus on the challenges of moving from a development environment to a production environment. We'll deploy and Ubuntu VM as our production server, and utilize a container orchestrator like docker swarm to handle rolling updates. Github: https://github.com/Sanjeev-Thiyagarajan/node-docker ▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬ 00:00 Intro & demo express app 04:04 Custom Images with Dockerfile 10:20 Docker image layers & caching 20:12 Docker networking opening ports 26:22 Dockerignore file 31:32 Syncing source code with bind mounts 45:16 Anonymous Volumes hack 51:44 Read-Only Bind Mounts 54:44 Environment variables 59:02 loading environment variables from file 01:01:17 Deleting stale volumes 01:03:47 Docker Compose 01:21:22 Development vs Production configs --------------Part 02 Working with multiple containers--------------- 01:44:33 Adding a Mongo Container 02:01:34 Communicating between containers 02:11:46 Express Config file 02:21:31 Container bootup order 02:32:12 Building a CRUD application 02:51:13 Sign up and Login 03:06:43 Authentication with sessions & Redis 03:34:22 Architecture Review 03:40:34 Nginx for Load balancing to multiple node containers 03:54:19 Express CORS ---------------Part 03 Moving to Prod-------------------- 03:57:30 Installing docker on Ubuntu(Digital Ocean) 04:03:07 Setup Git 04:05:23 Environment Variables on Ubuntu 04:13:58 Deploying app to production server 04:18:43 Pushing changes the hard way 04:25:44 Rebuilding Containers 04:27:18 Dev to Prod workflow review 04:30:36 Improved Dockerhub workflow 04:45:56 Automating with watchtower 04:55:52 Why we need an orchestrator 05:03:18 Docker Swarm 05:15:59 Pushing changes to Swarm stack If you like this video please subscribe to this channel. Don't let me go hungry! https://www.youtube.com/channel/UC2sYgV-NV6S5_-pqLGChoNQ?sub_confirmation=1 https://twitter.com/Sanjeev_Tea https://www.instagram.com/sanjeev_tea/ ▬▬▬▬▬▬ Support this garbage Channel 🍒 ▬▬▬▬▬▬ Patreon: https://www.patreon.com/sanjeevthiyagarajan ▬▬▬▬▬▬ Stalk me on Social Media 😲 ▬▬▬▬▬▬ https://twitter.com/Sanjeev_Tea https://www.instagram.com/sanjeev_tea/ https://www.facebook.com/sanjeevkt720 Background Image: https://www.freepik.com/vectors/background Background vector created by brgfx - www.freepik.com