2018-11-28 23:22:18 +00:00
|
|
|
---
|
|
|
|
- name: Create Heimdall Directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
|
|
|
- "{{ heimdall_data_directory }}"
|
|
|
|
|
|
|
|
- name: Create Heimdall container
|
|
|
|
docker_container:
|
|
|
|
name: heimdall
|
|
|
|
image: "{{ heimdall_docker_image }}"
|
|
|
|
pull: true
|
|
|
|
volumes:
|
|
|
|
- "{{ heimdall_data_directory }}:/config:rw"
|
|
|
|
env:
|
2021-01-12 11:56:36 +00:00
|
|
|
PUID: "{{ jellyfin_user_id }}"
|
|
|
|
PGID: "{{ jellyfin_group_id }}"
|
2018-11-28 23:22:18 +00:00
|
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
|
|
ports:
|
2020-01-05 21:47:40 +00:00
|
|
|
- "{{ heimdall_port_http }}:80"
|
|
|
|
- "{{ heimdall_port_https }}:443"
|
2018-11-28 23:22:18 +00:00
|
|
|
restart_policy: unless-stopped
|
|
|
|
memory: 1g
|
2019-04-11 22:03:11 +00:00
|
|
|
labels:
|
|
|
|
traefik.backend: "heimdall"
|
|
|
|
traefik.frontend.rule: "Host:heimdall.{{ ansible_nas_domain }}"
|
|
|
|
traefik.enable: "{{ heimdall_available_externally }}"
|
2020-01-18 18:16:24 +00:00
|
|
|
traefik.port: "80"
|