add gotify application

This commit is contained in:
Dirk Wilden 2021-02-20 20:04:12 +01:00
parent a2976d73e6
commit 7663ae305b
7 changed files with 51 additions and 1 deletions

3
.gitignore vendored
View file

@ -10,3 +10,6 @@ inventories
# Session
Session.vim
# IntelliJ
/.idea/

View file

@ -47,6 +47,7 @@ Ansible config and a bunch of Docker containers.
* [Gitea](https://gitea.io/en-us/) - Simple self-hosted GitHub clone
* [GitLab](https://about.gitlab.com/features/) - Self-hosted GitHub clone of the highest order
* [Glances](https://nicolargo.github.io/glances/) - for seeing the state of your system via a web browser
* [Gotify](https://gotify.net/) Self-hosted server for sending push notifications
* [Grafana](https://github.com/grafana/grafana) - Dashboarding tool
* [Guacamole](https://guacamole.apache.org/) - Web based remote desktop gateway, supports VNC, RDP and SSH
* [Heimdall](https://heimdall.site/) - Home server dashboard

View file

@ -0,0 +1,11 @@
# Gotify
Homepage: [https://gotify.net/](https://gotify.net/)
A simple server for sending and receiving messages in real-time per WebSocket. (Includes a sleek web-ui)
## Usage
Set `gotify_enabled: true` in your `inventories/<your_inventory>/nas.yml` file.
The Gotify web interface can be found at http://ansible_nas_host_or_ip:2346.

View file

@ -23,6 +23,7 @@ By default, applications can be found on the ports listed below.
| GitLab | 4443 | Bridge | HTTPS |
| GitLab | 422 | Bridge | SSH |
| Glances | 61208 | Bridge | HTTP |
| Gotify | 2346 | Bridge | HTTP |
| Grafana | 3000 | Bridge | HTTP |
| Guacamole | 8090 | Bridge | HTTP |
| Heimdall | 10080 | Bridge | HTTP |
@ -75,4 +76,4 @@ By default, applications can be found on the ports listed below.
| uTorrent | 6881 | Bridge | UDP |
| Wallabag | 7780 | Bridge | HTTP |
| YouTubeDL-Mater | 8998 | Bridge | HTTP |
| ZNC | 6677 | Bridge | |
| ZNC | 6677 | Bridge | |

View file

@ -103,6 +103,11 @@
- get_iplayer
when: (get_iplayer_enabled | default(False))
- role: gotify
tags:
- gotify
when: (gotify_enabled | default(False))
- role: heimdall
tags:
- heimdall

View file

@ -0,0 +1,10 @@
---
gotify_enabled: false
gotify_available_externally: "false"
# docker image to use
gotify_docker_image: gotify/server:latest
# network
gotify_port: "2346"
gotify_hostname: "gotify"

View file

@ -0,0 +1,19 @@
---
- 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"