services:
  dev:
    build:
      context: .
      target: dev
    volumes:
      - .:/var/app
    ports:
      - "5000:5000"

  integration:
    build:
      context: .
      target: integration
    volumes:
      - .:/var/app

  unit-lint:
    build:
      context: .
      target: unit-lint
    volumes:
      - .:/var/app

  deploy:
    build:
      context: .
      target: deploy
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8080/hello/"]
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 40s
