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:
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. |
Port | Protocol | Description |
---|---|---|
80 | TCP | Some useful details |
Container path | Description |
---|---|
/config | Some useful details |
The container is regularly scanned for vulnerabilities and updated. Further info can be found in the Security tab.
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.
user
Docker compose property or using the --user
argument. This would break the privilege drop logic.