Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

homecentr/docker-dhcp-exporter

 
 

Repository files navigation

Project status

CI/CD on master Regular Docker image vulnerability scan

HomeCentr - ISC DHCP Prometheus Exporter

Usage

version: "3.7"
services:
  dhcp_exporter:
    image: homecentr/dhcp
    volumes:
        - ./example/config:/config # Make sure both containers share the same configuration
        - dhcp_leases:/leases:ro   # And leases directory

  dhcp_exporter:
    image: homecentr/dhcp-exporter
    volumes:
        - ./example/config:/config
        - dhcp_leases:/leases
    
volumes:
  dhcp_leases:

Environment variables

Name Default value Description
PUID 7077 UID of the user dhcp-exporter should be running as.
PGID 7077 GID of the user dhcp-exporter should be running as.
DHCP_EXPORTER_ARGS --dhcpd.config-file /config/dhcpd.conf --dhcpd.lease-file /leases/dhcpd.leases If you mount the configuration file or the lease file to different location, you need to adjust the arguments accordingly.

Exposed ports

Port Protocol Description
80 TCP Some useful details

Volumes

Container path Description
/config Some useful details

Security

The container is regularly scanned for vulnerabilities and updated. Further info can be found in the Security tab.

Container user

The container supports privilege drop. Even though the container starts as root, it will use the permissions only to perform the initial set up. The dhcp-exporter process runs as UID/GID provided in the PUID and PGID environment variables.

⚠️ Do not change the container user directly using the user Docker compose property or using the --user argument. This would break the privilege drop logic.

Packages

No packages published

Languages

  • HTML 33.7%
  • Go 29.2%
  • JavaScript 15.0%
  • CSS 10.8%
  • Java 5.3%
  • Dockerfile 3.9%
  • Makefile 2.1%