Connect a Node Server to Postgres with Docker Compose
Автор: WittCode
Загружено: 2024-04-19
Просмотров: 3874
👨🏻💻 I made DevPayHub for solo devs. Payments & users handled.
https://devpayhub.com
Learn how to connect a Node server to a Postgres database using Docker Compose. We will also go over Docker Compose healthchecks, initialization scripts, and the pg npm library.
📚 My Courses
https://www.udemy.com/user/wittcode/
💻 My Software
https://chromewebstore.google.com/sea...
👨💻 Download Code
https://wittcode.com
⌛ Timestamps
0:00 - Introduction
0:06 - Project Demonstration
0:51 - Defining Environment Variables
1:51 - Node Project Setup
2:53 - Connecting Node to Postgres with pg
5:33 - Creating the Node Docker Image
6:25 - Creating the Postgres Docker Image and Initialization Scripts
7:57 - Creating Docker Volumes
8:36 - node_modules and Docker Problems
9:22 - Creating the Node Service
10:36 - Docker Compose depends_on
11:12 - Creating the Postgres Service
12:02- Postgres healthcheck
12:45 - Running the Application
13:54 - Outro
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: