- Docker desktop installed on your machine.
To start the project, you have two options depending on your needs:
Use this option if you want to start the containers in the background:
docker-compose up -d
This command starts the containers in detached mode, allowing you to continue using the terminal while the containers run in the background.
Use this option if you've made changes to the Dockerfiles or if you need to rebuild the images for any reason:
docker-compose up --build
This command rebuilds the images from the Dockerfiles and starts the containers. It's useful when updating dependencies or making significant changes to the container setup.
docker-compose down
If you are developing on Windows, it's essential to ensure hot reload works correctly. To enable efficient hot reloading, place your project directory within the WSL file system. For installing WSL, visit [https://learn.microsoft.com/en-us/windows/wsl/install].
Follow these steps:
- Open your WSL2 terminal.
- Navigate to a suitable directory within the WSL2 file system (/home/[user]).
- Clone your project to this location.
- Proceed with the Docker Compose commands as described above.