ansible-nas/roles/dashy/tasks/main.yml

18 lines
694 B
YAML
Raw Normal View History

---
- name: Dashy Docker Container
docker_container:
name: dashy
image: lissy93/dashy:latest
pull: true
ports:
- "{{ dashy_port }}:80"
restart_policy: unless-stopped
memory: "{{ dashy_memory }}"
labels:
traefik.enable: "{{ dashy_available_externally | string }}"
traefik.http.routers.dashy.rule: "Host(`{{ dashy_hostname }}.{{ ansible_nas_domain }}`)"
traefik.http.routers.dashy.tls.certresolver: "letsencrypt"
traefik.http.routers.dashy.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.dashy.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.dashy.loadbalancer.server.port: "80"