services:
    unit-lint:
        build:
            context: .
            target: unit-lint
        environment:
            - DD_TRACE_ENABLED=0
        volumes:
            - .:/var/app

    product-physical-dev:
        build:
            context: .
            target: dev
        healthcheck:
            test: ["CMD", "curl", "-f", "http://localhost:5000/hello/"]
            interval: 1m30s
            timeout: 10s
            retries: 3
            start_period: 40s
        ports:
            - "5000:5001"
        volumes:
            - .:/var/app
        env_file:
            - path: .env
              required: false
        environment:
            - Environment=dev

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

    deploy:
        build:
            context: .
            target: deploy
        volumes:
            - .:/var/app
        ports:
            - "8080:8080"
