docker-compose.yml 501 B

1234567891011121314151617181920
  1. services:
  2. app:
  3. container_name: app
  4. build: .
  5. ports:
  6. - "8080:8080"
  7. environment:
  8. - "POSTGRES_DB_SERVER_ADDRESS=db"
  9. - "POSTGRES_DB_SERVER_PORT=5432"
  10. - "POSTGRES_USER=postgres"
  11. - "POSTGRES_PASSWORD=example"
  12. healthcheck:
  13. test: "curl --fail --silent localhost:8080/actuator/health/readiness | grep UP || exit 1"
  14. interval: 2s
  15. timeout: 3s
  16. retries: 5
  17. start_period: 2s
  18. depends_on:
  19. db:
  20. condition: service_healthy