nas-services.yml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. ---
  2. - hosts: nas
  3. gather_facts: true
  4. become: true
  5. roles:
  6. - docker
  7. - yt-dlp
  8. - cloud-backups
  9. - statusservices
  10. - linux-system-roles.metrics
  11. - linux-system-roles.firewall
  12. vars_files:
  13. - "{{ inventory_dir }}/vars/vault.yaml"
  14. vars:
  15. status_services_extra:
  16. - grafana-server
  17. - smb
  18. backups: containers
  19. backups_ignore:
  20. - /mergerfs
  21. - /run/udev
  22. container_user: "{{ vaulted_media_user }}"
  23. container_uid: "{{ vaulted_media_uid }}"
  24. container_group: "{{ vaulted_media_group }}"
  25. container_gid: "{{ vaulted_media_gid }}"
  26. global_env_vars:
  27. - PUID={{ container_uid }}
  28. - PGID={{ container_gid }}
  29. container_networks:
  30. - name: downloaders
  31. driver: bridge
  32. subnet: 172.21.10.0/24
  33. ip_range: 172.21.10.0/24
  34. gateway: 172.21.10.1
  35. containers:
  36. - name: heimdall
  37. active: true
  38. image: linuxserver/heimdall
  39. ports:
  40. - 80:80
  41. volumes:
  42. - /opt/heimdall:/config
  43. include_global_env_vars: true
  44. restart: unless-stopped
  45. - name: sickchill
  46. active: true
  47. image: linuxserver/sickchill
  48. ports:
  49. - 8081:8081
  50. volumes:
  51. - /opt/sickchill:/config
  52. - /mergerfs:/mergerfs
  53. include_global_env_vars: true
  54. restart: unless-stopped
  55. networks:
  56. - downloaders
  57. - name: transmission
  58. active: true
  59. image: linuxserver/transmission
  60. ports:
  61. - 9091:9091
  62. volumes:
  63. - /opt/transmission:/config
  64. - /mergerfs:/mergerfs
  65. include_global_env_vars: true
  66. environment:
  67. - USER={{ vaulted_nas_transmission_username }}
  68. - PASS={{ vaulted_nas_transmission_password }}
  69. restart: unless-stopped
  70. networks:
  71. - downloaders
  72. - name: qbittorrent
  73. active: true
  74. image: linuxserver/qbittorrent
  75. ports:
  76. - 8080:8080
  77. volumes:
  78. - /opt/qbittorrent:/config
  79. - /mergerfs:/mergerfs
  80. include_global_env_vars: true
  81. environment:
  82. - WEBUI_PORT=8080
  83. restart: unless-stopped
  84. networks:
  85. - downloaders
  86. - name: scrutiny
  87. active: true
  88. image: ghcr.io/analogj/scrutiny:master-omnibus
  89. ports:
  90. - 8088:8080
  91. - 8086:8086
  92. volumes:
  93. - /opt/scrutiny/config:/opt/scrutiny/config
  94. - /opt/scrutiny/influxdb2:/opt/scrutiny/influxdb
  95. - /run/udev:/run/udev:ro
  96. cap_add:
  97. - SYS_RAWIO
  98. - SYS_ADMIN # https://github.com/AnalogJ/scrutiny/issues/26#issuecomment-696817130
  99. devices:
  100. - /dev/sda
  101. - /dev/sdb
  102. - /dev/sdc
  103. - /dev/sdd
  104. - /dev/sde
  105. - /dev/sdf
  106. - /dev/sdg
  107. - /dev/sdh
  108. - name: watchyourlan
  109. active: true
  110. image: aceberg/watchyourlan
  111. network_mode: host
  112. environment:
  113. - IFACE=enp42s0
  114. - TZ=America/Los_Angeles
  115. - SHOURTRRR_URL=ntfy://ntfy.warchildstory.com/TestNotifications
  116. - GUIIP=0.0.0.0
  117. - GUIPORT=8840
  118. volumes:
  119. - /opt/wyl:/data
  120. ports:
  121. - 8840:8840
  122. metrics_monitored_hosts:
  123. - nas.home.arpa
  124. - gateway.home.arpa
  125. metrics_retention_days: 14
  126. metrics_graph_service: yes
  127. metrics_query_service: yes
  128. firewall:
  129. - {'service': 'grafana', 'state': 'enabled' }
  130. - {'service': 'http', 'state': 'enabled' }
  131. - {'port': '8080/tcp', 'state': 'enabled'}
  132. - {'port': '8081/tcp', 'state': 'enabled'}
  133. - {'port': '8086/tcp', 'state': 'enabled'}
  134. - {'port': '8088/tcp', 'state': 'enabled'}
  135. - {'port': '8840/tcp', 'state': 'enabled'}
  136. - {'port': '9091/tcp', 'state': 'enabled'}