Skip to content

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

@vasuantala049

Description

@vasuantala049

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions