-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
20bc2ff
commit dbaff21
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM eclipse-temurin:17-jdk-focal | ||
|
||
WORKDIR /app | ||
|
||
COPY .mvn/ .mvn | ||
COPY mvnw pom.xml ./ | ||
RUN chmod +x mvnw | ||
RUN ./mvnw dependency:go-offline | ||
|
||
COPY src ./src | ||
|
||
CMD ["./mvnw", "spring-boot:run"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,31 @@ | ||
version: '3.8' | ||
|
||
services: | ||
app: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- "8080:8080" | ||
volumes: | ||
- .:/app | ||
- maven_cache:/root/.m2 | ||
environment: | ||
SPRING_PROFILES_ACTIVE: dev | ||
JAVA_OPTS: "-Xmx512m -Xms256m" | ||
networks: | ||
- app-network | ||
healthcheck: | ||
test: [ "CMD", "curl", "-f", "http://localhost:8080/health/health" ] | ||
interval: 1m30s | ||
timeout: 10s | ||
retries: 3 | ||
start_period: 40s | ||
|
||
networks: | ||
app-network: | ||
driver: bridge | ||
|
||
volumes: | ||
maven_cache: | ||
driver: local |