version: '3.8'

services:
  api-gw:
    container_name: fids-gateway_api-gw
    image: ${API_IMAGE}
    healthcheck:
      test: ["CMD", "nc", "-vz", "-w1", "localhost", "5002"]
      interval: 2s
      timeout: 2s
      retries: 5
      start_period: 2s
    environment:
      - TEST_TARGET=${TEST_TARGET}
      - APP_SETTINGS=${APP_SETTINGS}
      - API_DEBUG=${API_DEBUG}
    logging:
      driver: gelf
      options:
        gelf-address: "udp://localhost:12201"