services:

  function:
    platform: linux/amd64
    build:
      context: .
      args:
        version: "local-dev"
    volumes:
      - ./app:/var/task/app
    ports:
      - "9000:8080"
    environment:
      Environment: "dev"
      APP_DEBUG: "true"
      DD_ENV: "dev"
      DD_SERVICE: "songwhip-fan-consent-handler"
      DD_TRACE_ENABLED: "false"
      DD_ENHANCED_METRICS: "false"

  lint-and-test:
    platform: linux/amd64
    build:
      context: .
      dockerfile: Dockerfile.tests
    environment:
      Environment: "test"
