version: '3.1'

services:
  app:
    build: .
    ports:
      - 8080:8080
    environment:
      PORT: 8080
      ENVIRONMENT: development
    restart: on-failure
    healthcheck:
        test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
        interval: 30s
        timeout: 10s
        retries: 5
