Files
spring-boot-demo/docker-compose.yml
Savosin Denis e6db3360c2 add entrypoint to dockerfile and doc
fix resource usage
2025-11-06 15:47:56 +07:00

21 lines
399 B
YAML

---
services:
demo:
image: localhost/spring-boot-demo:latest
build:
dockerfile: Dockerfile
context: .
env_file:
- .env
expose:
- 8080
- 8081
command:
- app.jar
healthcheck:
test: [ "CMD", "curl", "--fail", "--silent", "http://localhost:8081/health" ]
interval: 30s
timeout: 10s
retries: 5
start_period: 10s