This documentation provides an overview on the Docker image for this project. Each section will explain various aspects such as requirements and, in particular, the commands to get the Docker image and container running on your personal machine.
- Prerequisites
- Clone the Repository
- Input Database Information
- Build the Backend JAR
- Build and Run Docker
- Check if Docker is Running
- Stopping Docker
- Troubleshooting
- Docker Desktop
- Docker Compose
- Git
- Java 21
- Maven
- Clone the project
git clone <repo-url>cd COSC310_GroupProject
- Inside the file
docker-compose.yml, change the database credentials to a valid username and password:SPRING_DATASOURCE_USERNAME: DATABASE_USERNAMESPRING_DATASOURCE_PASSWORD: DATABASE_PASSWORD
- Before running Docker you must build the backend JAR
cd backend/task-managermvn clean package
- Navigate to the root directory where
docker-compose.ymlis located
docker-compose build
docker-compose up --build
docker ps- If needed you can check the logs using this:
docker logs task-manager
- To stop Docker run:
docker-compose down
- To restart Docker run:
docker-compose up --build
docker ps -a- If
task-manageris already running, restart it with: docker start task-manager
- If
- If a container already exists but you need to rebuild it:
docker rm task-managerdocker rm <other-container-name>
- Run:
netstat -ano | findstr :8080
- If another process is using the port, kill it -- BE CAREFUL, CHECK WHAT IS RUNNING ON THE PORT FIRST:
taskkill /PID <process_id> /F