ansible-nas/tasks/duplicati.yml
animeai ce21999f46 Map all ports as variables in all.yml.dist
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.
2020-01-05 21:47:40 +00:00

27 lines
790 B
YAML

---
- name: Create Duplicati Directory
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ duplicati_data_directory }}"
- name: Dupicati Docker Container
docker_container:
name: duplicati
image: linuxserver/duplicati
pull: true
ports:
- "{{ duplicati_port }}:8200"
volumes:
- "{{ duplicati_data_directory }}:/config:rw"
- "{{ samba_shares_root }}:/source/shares:ro"
- "{{ docker_home }}:/source/docker:ro"
- "/etc/timezone:/etc/timezone:ro"
restart_policy: unless-stopped
memory: 1g
labels:
traefik.backend: "duplicati"
traefik.frontend.rule: "Host:duplicati.{{ ansible_nas_domain }}"
traefik.enable: "{{ duplicati_available_externally }}"
traefik.port: "{{ duplicati_port }}"