You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a method to run the mindflavor/prometheus-wireguard-exporter docker image without requiring network_mode: host ?
The purpose would be to allow only prometheus running in a container access the exporter and not expose the API to the host.
version: "3.7"networks:
monitor-net:
services:
wgexporter:
container_name: wgexporterimage: mindflavor/prometheus-wireguard-exporterrestart: unless-stopped# Would prefer to just export metrics to other containers on the docker network.# expose:# - 9586# networks:# - monitor-net# But cannot run `wg show` without thisnetwork_mode: hostcap_add:
- NET_ADMINlabels:
org.label-schema.group: "monitoring"
The text was updated successfully, but these errors were encountered:
Is there a method to run the
mindflavor/prometheus-wireguard-exporter
docker image without requiringnetwork_mode: host
?The purpose would be to allow only
prometheus
running in a container access the exporter and not expose the API to the host.The text was updated successfully, but these errors were encountered: