-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Description
I would like to contribute a new example to this repository β a Spring Boot + Thymeleaf + MySQL web application fully containerized using Docker.
The project will demonstrate how to run a Java-based full-stack web app in containers using both a Dockerfile (for standalone builds) and a docker-compose.yml file (for multi-container orchestration).
π Key Features
Backend: Spring Boot (REST + Thymeleaf template integration)
Frontend: Thymeleaf-based UI for serving dynamic web pages
Database: MySQL (with data persistence using Docker volumes)
Environment configuration via .env file
Proper Dockerfile for Spring Boot application
docker-compose.yml to run both app and database services together
Health check and network configuration for container communication
π§© Deliverables
/app folder containing the Spring Boot + Thymeleaf source code
Dockerfile for the Spring Boot service
docker-compose.yml linking Spring Boot and MySQL
README with setup and run instructions
π‘ Motivation
This addition will help developers learn how to:
Containerize full-stack Java web applications
Use Docker Compose for multi-container setup
Connect Spring Boot with MySQL using environment variables