Publishing service via Avahi/mDNS

I have a multi-container app. One of them (in C#) is responsible to create the XML files that are the services for avahi. I know that the mds-publisher can pass from host to container the avahi when it is installed but I haven’t seen a way to pass a port number under the local or a description, is there a way to do that in the container?
It is also possible for me to move the xml to a python container. My XML:

<?xml version="1.0" encoding="UTF-8"?>
<service-group>
  <name>Balena-dev-7</name>
  <service>
    <type>_http._tcp</type>
    <port>61005</port>
    <txt-record>Description=Description</txt-record>
    <txt-record>GRPCPort=61005</txt-record>
    <txt-record>EventRendererGrpcPort=61007</txt-record>
    <txt-record>Version=3.7.0</txt-record>
    <txt-record>VenueID=6355333ba</txt-record>
  </service>
</service-group>