clinic.ubucloud.cc
Live on VPS
Java 21 · Spring Boot 3.5

A Clinic Management REST API built with Java and Spring Boot.

REST API for managing patients, doctors, appointments and medical records. The application is deployed on a Linux VPS using Docker, Nginx, MySQL and Redis, with monitoring powered by Prometheus, Grafana and Loki.

Java 21 Spring Boot 3.5 MySQL Redis Docker Nginx Prometheus Grafana Loki GitHub Actions OpenAPI
What's inside

Four parts, each doing one job

REST API

CRUD endpoints for patients, doctors, appointments, visits and medical records.

Infrastructure

Docker Compose, Nginx as reverse proxy, HTTPS via Let's Encrypt, MySQL and Redis. Health and management endpoints stay internal — not exposed publicly.

Observability

Actuator metrics through Prometheus and Grafana, logs centralized in Loki via Promtail.

Delivery

Automated build and deployment using GitHub Actions — no manual steps.

Deployment

Run the way a real service is run

Metrics and logs are collected centrally instead of being read off the box by hand.

Reverse proxyNginx + HTTPS (Let's Encrypt)
MetricsActuator → Prometheus → Grafana
LogsPromtail → Loki
DeployGitHub Actions on push
Health endpoints kept internal
Under the hood

Architecture

Internet Nginx Spring Boot MySQL Redis Prometheus Grafana Promtail Loki metrics logs