2020-05-02 23:01:06 +00:00
|
|
|
---
|
|
|
|
- name: Create Mylar Directory
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
2020-05-12 17:52:03 +00:00
|
|
|
- "{{ mylar_data_directory }}/config"
|
2020-05-02 23:01:06 +00:00
|
|
|
|
|
|
|
- name: Mylar
|
|
|
|
docker_container:
|
|
|
|
name: mylar
|
|
|
|
image: linuxserver/mylar
|
|
|
|
pull: true
|
|
|
|
volumes:
|
|
|
|
- "{{ mylar_comics_directory }}:/comics:rw"
|
|
|
|
- "{{ mylar_downloads_directory }}:/downloads:rw"
|
2020-05-12 17:52:49 +00:00
|
|
|
- "{{ mylar_data_directory }}/config:/config:rw"
|
2020-05-02 23:01:06 +00:00
|
|
|
ports:
|
|
|
|
- "{{ mylar_port_http }}:8090"
|
|
|
|
env:
|
|
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
|
|
PUID: "{{ mylar_user_id }}"
|
|
|
|
PGID: "{{ mylar_group_id }}"
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
memory: 1g
|
|
|
|
labels:
|
|
|
|
traefik.backend: "mylar"
|
|
|
|
traefik.frontend.rule: "Host:mylar.{{ ansible_nas_domain }}"
|
|
|
|
traefik.enable: "{{ mylar_available_externally }}"
|
|
|
|
traefik.port: "{{ mylar_port_http }}"
|