ansible/playbooks/tasks/web/transmission.yml

29 lines
778 B
YAML

# vim:ft=ansible:
- name: docker deploy transmission
docker_container:
name: transmission
image: haugene/transmission-openvpn:latest
env:
USER: transmission
PASS: "{{ secret_transmission_user_pass }}"
OPENVPN_PROVIDER: PIA
OPENVPN_CONFIG: france
OPENVPN_USERNAME: "{{ secret_pia_user }}"
OPENVPN_PASSWORD: "{{ secret_pia_pass }}"
LOCAL_NETWORK: 192.168.0.0/16
devices:
- /dev/net/tun
capabilities:
- NET_ADMIN
ports:
- 51413:51413/tcp
- 51413:51413/udp
networks:
- name: web
aliases: [ "transmission" ]
volumes:
- /data/transmission/config:/config
- /data/shared/downloads:/data
- /data/transmission/watch:/watch
tags: [ docker, transmission ]