mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-27 03:53:06 +00:00
34 lines
1,005 B
YAML
34 lines
1,005 B
YAML
|
|
---
|
|
- name: Create uTorrent Directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- "{{ utorrent_config_directory }}"
|
|
- "{{ utorrent_download_directory }}"
|
|
|
|
- name: uTorrent Docker Container
|
|
docker_container:
|
|
name: utorrent
|
|
image: ekho/utorrent:latest
|
|
pull: true
|
|
volumes:
|
|
- "{{ utorrent_download_directory }}:/data:rw"
|
|
- "{{ utorrent_config_directory }}:/utorrent/settings:rw"
|
|
- "{{ torrents_root }}:/utorrent/torrents:rw"
|
|
ports:
|
|
- "{{ utorrent_port_http }}:8080"
|
|
- "{{ utorrent_port_bt_tcp }}:6881"
|
|
- "{{ utorrent_port_bt_udp }}:6881/udp"
|
|
env:
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
UID: "{{ utorrent_user_id }}"
|
|
GID: "{{ utorrent_group_id }}"
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|
|
labels:
|
|
traefik.backend: "utorrent"
|
|
traefik.frontend.rule: "Host:utorrent.{{ ansible_nas_domain }}"
|
|
traefik.enable: "{{ utorrent_available_externally }}"
|
|
traefik.port: "8080"
|