mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-13 03:58:47 +00:00
20 lines
751 B
YAML
20 lines
751 B
YAML
|
---
|
||
|
- 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"
|