Adding the flag build builds the images before attempting to run the services.
Not doing so creates this error:
WARNING: Image for service todos-api was built because it did not already exist. To rebuild this image you must use docker-compose build or docker-compose up --build.
Adding the flag
build
builds the images before attempting to run the services.Not doing so creates this error:
WARNING: Image for service todos-api was built because it did not already exist. To rebuild this image you must use docker-compose build or docker-compose up --build.