Move deluge onto walker

Stop torrent traffic being limitted by home broadband
This commit is contained in:
Jake Howard
2020-10-02 18:11:27 +01:00
parent 6cfaa3a03a
commit 191374b812
6 changed files with 24 additions and 28 deletions

View File

@ -0,0 +1,20 @@
version: "2.3"
services:
deluge:
image: linuxserver/deluge:latest
environment:
- PUID={{ docker_user.id }}
- PGID={{ docker_user.id }}
- TZ=Europe/London
volumes:
- "{{ app_data_dir }}/deluge:/config"
- /mnt/tank/downloads:/downloads
ports:
- "{{ wireguard.clients[ansible_fqdn].ip }}:8112:8112"
restart: unless-stopped
depends_on:
- tor-socks-proxy
tor-socks-proxy:
image: peterdavehello/tor-socks-proxy:latest
restart: unless-stopped

View File

@ -0,0 +1,4 @@
- name: restart deluge
shell:
chdir: /opt/deluge
cmd: "{{ docker_update_command }}"

View File

@ -0,0 +1,17 @@
- name: Create deluge directory
file:
path: /opt/deluge
state: directory
owner: "{{ docker_user.name }}"
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Install deluge compose file
template:
src: files/docker-compose.yml
dest: /opt/deluge/docker-compose.yml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
validate: /usr/bin/docker-compose -f %s config
notify: restart deluge
become: true