~/talk

How to Build and Run Node Apps with Docker and Compose

Talkat DockerCon 2020 · on Thursday, 2020-05-28· [nodejs]
slides:none on file

Shows how to build a small Node image using an Alpine Node base (notes on musl vs glibc), chain RUN instructions to minimize layers, and copy package.json first to avoid rebuilding node_modules. Uses Docker build/run and Docker Compose with a named volume for node_modules and MongoDB service, adds nodemon for live reloads and a wait-for wrapper (netcat) to delay DB connections. Demo builds, creates sharks in the app, and after compose down/up the Mongo volume persists the data.

AI-written summary · about

  1. 0:00Introduction
  2. 1:59Containers for Node apps
  3. 4:14Containers versus virtual machines
  4. 6:03Building Node image
  5. 12:11Demo: Node app run
  6. 14:32Add database with Compose
  7. 18:21Compose for development
  8. 23:28Managing containers
  9. 24:12Demo: MongoDB persistence
  10. 26:30Production deployment prep
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.