DEV Community

Discussion on: JavaScript CRUD Rest API using Nodejs, Express, Sequelize, Postgres, Docker and Docker Compose

Collapse
 
sikehish_ profile image
Hisham Akmal

Well written and documented. Thanks a ton! But i've got one doubt regarding docker compose and docker build. Arent we supposed to build the image first and name it node_live_app using the docker build command and then execute docker compose build?

Collapse
 
francescoxx profile image
Francesco Ciulla

no, docker compose build just builds the image. you can even just run docker compose up --build , or docker compose up.

I just did it to show the step-by-step commands to make it clearer

Collapse
 
sikehish_ profile image
Hisham Akmal

Oh okay. Thank you!

Thread Thread
 
francescoxx profile image
Francesco Ciulla

you are welcome