A simple project but a big idea.
-
Install Docker and Docker Compose if you haven't already.
-
Open a terminal and navigate to the directory where
docker-compose.yml
file is located, ins this case, in root dir. -
Run the following command to start the containers:
docker-compose up -d
This command will build the necessary images and start the containers in the background.
-
Open your browser and go to localhost:8000 to use the project.
-
If you want to remove the containers, networks, and volumes as well as the images, use the following command:
docker-compose down --volumes --rmi all
This command will remove everything created by
docker-compose
.