This is a project that aims to provide waivers to customers. The Waivers are of different types. It has different endpoints to create a waivers,get waivers.
- Docker: Install Docker on your machine. You can download Docker from here.
- Git: You need Git to clone this repository. You can download Git from here.
- Java Development Kit (JDK): Ensure you have Java 17 or later installed for building the Spring Boot application.
Follow these steps to set up and run your Dockerized Spring Boot application:
-
Clone the repository to your local machine:
git clone <repository_url> cd dockerized-spring-boot-app
-
Run the following command in the same directory as your docker-compose.yml file to start both the Spring Boot application and the MySQL database as containers:
docker-compose upThe -d flag can be added to run the containers in detached mode, allowing you to use the terminal for other tasks:
docker-compose up -d
After the containers are up and running, you can access your Spring Boot application at http://localhost:8080/. It should be able to connect to the MySQL database container using the specified environment variables.
To stop and remove the containers, use the following command:
docker-compose down
Application configuration can be found in the src/main/resources/application.properties file. Modify this file to configure your Spring Boot application as needed.