services:
  lint-and-test:
    platform: linux/amd64
    build:
      context: .
      target: lint-and-test
    volumes:
      - ./build:/var/app/build
  ows-label-audit-deploy:
    platform: linux/amd64
    build:
      context: .
      target: deploy
    ports:
      - "8080:8080"
    env_file:
      - path: .env
        required: false
    healthcheck:
      test:
        ["CMD-SHELL", "curl", "-f", "http://localhost:8080:hello/ || exit 1"]
      interval: 30s
      timeout: 5s
      retries: 5
    environment:
      - Environment=dev
      - DATADOG_TRACE_ENABLED=false
  ows-label-audit-dev:
    platform: linux/amd64
    build:
      context: .
      target: dev
    ports:
      - "5001:5000"
    env_file:
      - path: .env
        required: false
    environment:
      Environment: "dev"
    volumes:
      - .:/var/app
