This project includes Docker configuration for easy setup and deployment.
- Docker and Docker Compose installed on your machine
- Clone the repository
- Navigate to the project directory
- Run the following command to start the application and database:
docker-compose up -dThis will:
- Build the Spring Boot application
- Start a MySQL database
- Connect the application to the database
The application will be available at http://localhost:8080
To stop the containers, run:
docker-compose downTo stop the containers and remove the volumes (this will delete the database data), run:
docker-compose down -vThe Docker setup uses the following configuration:
- MySQL database running on port 3306
- Spring Boot application running on port 8080
- Database name: doctorgeondam
- Database root password: rootpassword
These settings can be modified in the docker-compose.yml file.