services:
  fluentbit:
    image: fluent/fluent-bit:3.1.7-debug
    ports:
      - "24224:24224"
      - "24224:24224/udp"
    environment:
      FOO: ${BAR}

  app:
    image: nginx
    depends_on:
      fluentbit:
        condition: service_started
        restart: true
    logging:
      driver: fluentd
      options:
        fluentd-address: ${HOST:-127.0.0.1}:24224
