docker-compose.override.yml 764 B

123456789101112131415161718
  1. services:
  2. prometheus-exporter-mailcow:
  3. image: ghcr.io/mailcow/prometheus-exporter:2
  4. ports:
  5. - "9099:9099"
  6. restart: always
  7. environment:
  8. MAILCOW_EXPORTER_HOST: "<your-mail-domain>" # Replace with your Mailcow hostname
  9. MAILCOW_EXPORTER_API_KEY: "<your-API-Key>" # Replace with your API key
  10. MAILCOW_EXPORTER_TOKEN: "<your-secure-token>" # Replace with your secure key
  11. # MAILCOW_EXPORTER_TOKEN_DISABLE: "true" # Uncomment only if it is safe to disable token authentication (e.g., internal network only)
  12. dns:
  13. - ${IPV4_NETWORK:-172.22.1}.254
  14. networks:
  15. mailcow-network:
  16. ipv4_address: ${IPV4_NETWORK:-172.22.1}.209
  17. aliases:
  18. - prometheus-exporter