mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-15 00:17:10 +00:00
ce21999f46
NOTE: The majority of traefik ports were totally broken and would never have worked. It should be the external port there, not the internal container port!. Port conflicts were fixed.
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
---
|
|
- name: Create Transmission Directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
# mode: 0755
|
|
with_items:
|
|
- "{{ transmission_config_directory }}"
|
|
- "{{ transmission_download_directory }}"
|
|
- "{{ transmission_watch_directory }}"
|
|
|
|
- name: Transmission Docker Container
|
|
docker_container:
|
|
name: transmission
|
|
image: linuxserver/transmission
|
|
pull: true
|
|
volumes:
|
|
- "{{ transmission_config_directory }}:/config:rw"
|
|
- "{{ transmission_download_directory }}:/downloads:rw"
|
|
- "{{ transmission_watch_directory }}:/watch:rw"
|
|
ports:
|
|
- "{{ transmission_webui_port }}:9091"
|
|
- "{{ transmission_external_port }}:51413"
|
|
env:
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
PUID: "{{ transmission_user_id }}"
|
|
PGID: "{{ transmission_group_id }}"
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|
|
labels:
|
|
traefik.backend: "transmission"
|
|
traefik.frontend.rule: "Host:transmission.{{ ansible_nas_domain }}"
|
|
traefik.enable: "{{ transmission_available_externally }}"
|
|
traefik.port: "{{ transmission_webui_port }}"
|