nas-services.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ---
  2. - hosts: nas
  3. gather_facts: true
  4. become: true
  5. vars_files:
  6. - "{{ inventory_dir }}/vars/vault.yaml"
  7. vars:
  8. service_list: "smb" # non-container services
  9. backups: containers
  10. backups_ignore: /mergerfs
  11. firewall_ports:
  12. - 8080/tcp
  13. - 8081/tcp
  14. - 9091/tcp
  15. container_user: "{{ vaulted_container_user }}"
  16. container_uid: "{{ vaulted_media_uid }}"
  17. container_group: "{{ vaulted_container_group }}"
  18. container_gid: "{{ vaulted_media_gid }}"
  19. global_env_vars:
  20. - PUID={{ container_uid }}
  21. - PGID={{ container_gid }}
  22. container_networks:
  23. - name: downloaders
  24. driver: bridge
  25. subnet: 172.21.10.0/24
  26. ip_range: 172.21.10.0/24
  27. gateway: 172.21.10.1
  28. containers:
  29. - name: sickchill
  30. active: true
  31. image: linuxserver/sickchill
  32. ports:
  33. - 8081:8081
  34. volumes:
  35. - /opt/sickchill:/config
  36. - /mergerfs:/mergerfs
  37. include_global_env_vars: true
  38. restart: unless-stopped
  39. networks:
  40. - downloaders
  41. - name: transmission
  42. active: true
  43. image: linuxserver/transmission
  44. ports:
  45. - 9091:9091
  46. volumes:
  47. - /opt/transmission:/config
  48. - /mergerfs/private/processing:/mergerfs/private/processing
  49. include_global_env_vars: true
  50. environment:
  51. - USER={{ vaulted_nas_transmission_username }}
  52. - PASS={{ vaulted_nas_transmission_password }}
  53. restart: unless-stopped
  54. networks:
  55. - downloaders
  56. - name: qbittorrent
  57. active: true
  58. image: linuxserver/qbittorrent
  59. ports:
  60. - 8080:8080
  61. volumes:
  62. - /opt/qbittorrent:/config
  63. - /mergerfs/private/processing/qbittorrent:/mergerfs/private/processing/qbittorent
  64. include_global_env_vars: true
  65. environment:
  66. - WEBUI_PORT=8080
  67. restart: unless-stopped
  68. networks:
  69. - downloaders
  70. roles:
  71. - docker
  72. - cloud-backups
  73. - statusservices