Fix critical discrepancies found during validation audit
- Fix cert resolver name (cloudflare -> letsencrypt) - Fix volume paths (/mnt/nas -> /data) - Add missing custom port mappings - Add privileged/capability flags - Add 8 new roles: portainer, n8n, nodered, influxdb, guacamole, watchtower, rtlamr2mqtt, telegraf - Fix Traefik template (ports, ACME path, wildcard cert) - Add extra volume mounts for media services
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
---
|
||||
telegraf_compose_dir: "{{ docker_compose_base }}/telegraf"
|
||||
telegraf_image: "telegraf:latest"
|
||||
@@ -0,0 +1,14 @@
|
||||
---
|
||||
- name: Create telegraf compose directory
|
||||
file:
|
||||
path: "{{ telegraf_compose_dir }}"
|
||||
state: directory
|
||||
- name: Deploy telegraf compose file
|
||||
template:
|
||||
src: docker-compose.yml.j2
|
||||
dest: "{{ telegraf_compose_dir }}/docker-compose.yml"
|
||||
notify: restart telegraf
|
||||
- name: Start telegraf
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ telegraf_compose_dir }}"
|
||||
state: present
|
||||
@@ -0,0 +1,14 @@
|
||||
services:
|
||||
telegraf:
|
||||
image: {{ telegraf_image }}
|
||||
container_name: telegraf
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /data/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
networks:
|
||||
- {{ docker_network_name }}
|
||||
|
||||
networks:
|
||||
{{ docker_network_name }}:
|
||||
external: true
|
||||
Reference in New Issue
Block a user