You can deploy this app on any Linux Server , especially AWS EC2 instance , along with a MySQL database (e.g., AWS RDS).
Checks if a container named spring-app-container is running. If not, it removes any stopped containers with the same name and runs a new container attached to the Docker network.