version: '3.8'

services:
  catcher:
    container_name: fids-testing_catcher
    image: ${API_IMAGE}
    environment:
      - POSTGRES_USER=${POSTGRES_USER}
      - POSTGRES_PASS=${POSTGRES_PASS}
    extra_hosts:
      - "host.docker.internal:host-gateway"
    networks:
      - auth
      - flights
      - gateway
      - subscriptions

networks:
  auth:
    name: fids-auth-dev_auth
    external: true
  flights:
    name: fids-flights-dev_flights
    external: true
  subscriptions:
    name: fids-subs-dev_subscriptions
    external: true
  gateway:
    name: fids-gateway-dev_gateway
    external: true