mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-26 03:23:11 +00:00
32 lines
1 KiB
YAML
32 lines
1 KiB
YAML
---
|
|
- name: Create Mylar Directory
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- "{{ mylar_data_directory }}/config"
|
|
|
|
- name: Mylar
|
|
docker_container:
|
|
name: mylar
|
|
image: linuxserver/mylar
|
|
pull: true
|
|
volumes:
|
|
- "{{ mylar_comics_directory }}:/comics:rw"
|
|
- "{{ mylar_downloads_directory }}:/downloads:rw"
|
|
- "{{ mylar_data_directory }}/config:/config:rw"
|
|
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.enable: "{{ mylar_available_externally }}"
|
|
traefik.http.routers.mylar.rule: "Host(`mylar.{{ ansible_nas_domain }}`)"
|
|
traefik.http.routers.mylar.tls.certresolver: "letsencrypt"
|
|
traefik.http.routers.mylar.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
|
traefik.http.routers.mylar.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
|
traefik.http.services.mylar.loadbalancer.server.port: "8090"
|