services: prometheus-exporter-mailcow: image: ghcr.io/mailcow/prometheus-exporter:2 ports: - "9099:9099" restart: always environment: MAILCOW_EXPORTER_HOST: "" # Replace with your Mailcow hostname MAILCOW_EXPORTER_API_KEY: "" # Replace with your API key MAILCOW_EXPORTER_TOKEN: "" # Replace with your secure key # MAILCOW_EXPORTER_TOKEN_DISABLE: "true" # Uncomment only if it is safe to disable token authentication (e.g., internal network only) dns: - ${IPV4_NETWORK:-172.22.1}.254 networks: mailcow-network: ipv4_address: ${IPV4_NETWORK:-172.22.1}.209 aliases: - prometheus-exporter