Skip to content

Commit

Permalink
Jinja template for compose file of this component
Browse files Browse the repository at this point in the history
  • Loading branch information
xogoodnow committed Dec 20, 2023
1 parent 3bdd365 commit 3061d01
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: "{{ compose_api_version }}"
services:
blackbox-exporter:
container_name: "blackbox-exporter-{{ inventory_hostname }}-{{ ansible_play_hosts_all.index(inventory_hostname) }}"
image: "prom/blackbox-exporter:{{ blackbox_exporter_version }}"
volumes:
- "/root/Config_Files/Blackbox/:/etc/blackbox/"

restart: unless-stopped
command:
- '--config.file=/etc/blackbox/blackbox.yaml'

network_mode: host
capabilities:
- NET_RAW
- NET_ADMIN





0 comments on commit 3061d01

Please sign in to comment.