You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project is a Spring Boot application. The repository includes a multi-stage `Dockerfile` that builds the app with Maven and produces a runtime image. A `docker-compose.yml` is provided as an example to run the service together with a MySQL database.
3
+
This project is a Spring Boot application. The repository includes a multi-stage `Dockerfile` that builds the app with Maven and produces a runtime image. A `docker-compose.yml` is provided to run the service together with a MySQL database.
4
4
5
-
Quick steps
5
+
---
6
6
7
-
Build the image with Docker (from repository root):
Use docker-compose for local development (builds image and starts MySQL):
24
19
25
-
```bash
20
+
# Start using Docker Compose
26
21
docker compose up --build
27
-
```
28
22
29
-
Notes
30
-
- The Dockerfile uses Maven to build and OpenJDK 21 runtime to run the jar.
31
-
- The `docker-compose.yml` exposes MySQL on 3306 for convenience. In production you should not expose DB ports publicly and use secure credentials.
32
-
- If you want Docker image layers to cache better during development, consider copying only `pom.xml` first and running `mvn dependency:go-offline` before copying source.
0 commit comments