version: '3.7'
services:

  slz-api:
    volumes:
      - ${PWD}:/app
    container_name: slz-api
    build:
      context: .
      args:
        APP: slz_api_service
        PACKAGE: slz-api-service
    env_file:
      - ./envs/db.env
      - ./envs/api.env
      # create the below file if it does not exist (used for your custom values)
      - ./envs/.env
    ports:
      - "8000:8000"
    command: ./bin/entrypoint.sh
    networks:
      - slzapi

  datadog-agent:
    container_name: datadog-agent
    hostname: datadog-agent
    image: datadog/agent:latest
    environment:
      - DD_API_KEY=testing
      - DD_APM_NON_LOCAL_TRAFFIC=true
      - DD_APM_ENABLED=true
    ports:
      - "8216:8126"
    networks:
      - slzapi
    links:
      - slz-api

networks:
  slzapi:
    driver: bridge
