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:
2026-02-01 23:54:39 -06:00
parent b9be45dc71
commit 50829af421
38 changed files with 368 additions and 36 deletions
+3
View File
@@ -0,0 +1,3 @@
---
portainer_compose_dir: "{{ docker_compose_base }}/portainer"
portainer_image: "portainer/portainer-ce:latest"
+14
View File
@@ -0,0 +1,14 @@
---
- name: Create portainer compose directory
file:
path: "{{ portainer_compose_dir }}"
state: directory
- name: Deploy portainer compose file
template:
src: docker-compose.yml.j2
dest: "{{ portainer_compose_dir }}/docker-compose.yml"
notify: restart portainer
- name: Start portainer
community.docker.docker_compose_v2:
project_src: "{{ portainer_compose_dir }}"
state: present
@@ -0,0 +1,17 @@
services:
portainer:
image: {{ portainer_image }}
container_name: portainer
restart: unless-stopped
ports:
- "9002:9000"
- "8000:8000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /data/portainer:/data
networks:
- {{ docker_network_name }}
networks:
{{ docker_network_name }}:
external: true