Files
homelab/tasks/gotify.yml
Matthew McKinnon 6208f61652
All checks were successful
Deploy / Prepare Build (push) Successful in 24m50s
chore: update container image
2025-10-15 20:05:45 +10:00

29 lines
737 B
YAML

---
- name: Create directories
file:
path: "{{ item }}"
state: directory
with_items:
- "/data/gotify"
- "/data/gotify/data"
- name: Create the gotify container
docker_container:
name: gotify
image: gotify/server:2.7.3
restart_policy: unless-stopped
networks:
- name: proxy
volumes:
- /data/gotify/data:/app/data
labels:
traefik.enable: "true"
traefik.http.routers.gotify.rule: "Host(`gotify.comprofix.com`)"
traefik.http.routers.gotify.entrypoints: "https"
traefik.http.routers.gotify.tls: "true"
traefik.http.routers.gotify.service: "gotify"
traefik.http.services.gotify.loadbalancer.server.port: "80"
pull: true
recreate: true