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

20 lines
751 B
YAML
Raw Normal View History

2021-02-20 19:04:12 +00:00
---
- name: Gotify Docker Container
docker_container:
name: gotify
image: "{{ gotify_docker_image }}"
pull: true
ports:
- "{{ gotify_port }}:80"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
restart_policy: unless-stopped
memory: 200m
labels:
traefik.enable: "{{ gotify_available_externally }}"
traefik.http.routers.gotify.rule: "Host(`{{ gotify_hostname }}.{{ ansible_nas_domain }}`)"
traefik.http.routers.gotify.tls.certresolver: "letsencrypt"
traefik.http.routers.gotify.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.gotify.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.gotify.loadbalancer.server.port: "80"