Proposal: Add Spring Boot + Thymeleaf + MySQL Web App with Dockerfile & docker-compose.yml #731

Open
opened 2026-03-07 21:22:45 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @vasuantala049 on GitHub (Oct 31, 2025).

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

Originally created by @vasuantala049 on GitHub (Oct 31, 2025). 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-compose#731