Sign inSign up

learningdevops2711/dockerize-node-app-with-database

By learningdevops2711

Updated over 1 year ago

Dockerize a Node.js App with a Database (PostgreSQL/MySQL)

Image
0

220

learningdevops2711/dockerize-node-app-with-database repository overview

4. Dockerize a Node.js App with a Database (PostgreSQL/MySQL)

  • Objective: Containerize a Node.js app with a database service.
  • Steps:
    • Set up a Node.js app with API endpoints.
    • Containerize the app by creating a Dockerfile.
    • Use docker-compose to spin up a PostgreSQL or MySQL container and link it to your Node.js app.
    • Add data persistence for your database using Docker volumes.
    • Expose relevant ports to interact with the app from the host machine.

What you'll practice:

  • Dockerizing a full-stack application.
  • Managing different services (API and database).
  • Using Docker volumes to persist data across container restarts.

Tag summary

Content type

Image

Digest

sha256:df33197c0

Size

335.9 MB

Last updated

over 1 year ago

docker pull learningdevops2711/dockerize-node-app-with-database