Dockerfile
file. This will contains all the commands that could be called on the command line to create an image.Dockerfile
. Docker Compose
saves from this by allowing you to use a YAML
file to operate multi-container applications at once and run it just with one command. docker-compose.yml
file at the root of your project. Make sure to have an .env
file at the root of your project. Dockerfile
.docker-compose
command to build and run the image.