Briefly describe what your project does, the technologies it uses, and its purpose. You can expand this section based on the specifics of your project.
Before running the project, ensure you have the following installed:
- Docker Desktop: Download and install from Docker's official website.
Follow these steps to set up and run the project.
git clone --recurse-submodules https://github.com/P72024/P7Project
cd P7ProjectEnsure Docker Desktop is running, then execute the following command:
With Makefile:
make dev
Without Makefile:
docker compose -f docker-dev.yml up --buildWith Makefile:
make prod
Without Makefile:
docker compose -f docker-prod.yml up --build
This command will build the Docker images (if not already built) and start the containers as defined in your `docker-dev.yml` or `docker-prod.yml` file.
### 3. Access the Application
After the containers are up and running, you can access the application through your browser at:
or:
## Troubleshoot Docker
When Docker is running, use
docker exec -it /bin/sh
You can find Container ID in Docker Desktop.
From here you can use commands such as:
ls
or:
cat
## Additional Commands
- **Stop the containers**:
```bash
docker compose down
-
Delete images:
docker image rm p7project-client docker image rm p7project-backend
-
View logs for a specific service:
docker compose logs <service-name>
If you encounter any issues, ensure Docker Desktop is running and that no conflicting services are using the required ports. Check the logs for more detailed error messages:
docker compose logs