mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-12 11:38:47 +00:00
add gotify data directory and option to run with other user
This commit is contained in:
parent
7663ae305b
commit
4eb22b0272
3 changed files with 24 additions and 0 deletions
|
@ -9,3 +9,8 @@ A simple server for sending and receiving messages in real-time per WebSocket. (
|
||||||
Set `gotify_enabled: true` in your `inventories/<your_inventory>/nas.yml` file.
|
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.
|
The Gotify web interface can be found at http://ansible_nas_host_or_ip:2346.
|
||||||
|
|
||||||
|
Android client: [https://play.google.com/store/apps/details?id=com.github.gotify](https://play.google.com/store/apps/details?id=com.github.gotify)
|
||||||
|
iOS client: n/a
|
||||||
|
Chrome extension: n/a
|
||||||
|
Firefox extension: [https://addons.mozilla.org/en-US/firefox/addon/gotify-for-firefox/](https://addons.mozilla.org/en-US/firefox/addon/gotify-for-firefox/)
|
||||||
|
|
|
@ -2,9 +2,16 @@
|
||||||
gotify_enabled: false
|
gotify_enabled: false
|
||||||
gotify_available_externally: "false"
|
gotify_available_externally: "false"
|
||||||
|
|
||||||
|
# data directory
|
||||||
|
gotify_data_directory: "{{ docker_home }}/gotify"
|
||||||
|
|
||||||
# docker image to use
|
# docker image to use
|
||||||
gotify_docker_image: gotify/server:latest
|
gotify_docker_image: gotify/server:latest
|
||||||
|
|
||||||
# network
|
# network
|
||||||
gotify_port: "2346"
|
gotify_port: "2346"
|
||||||
gotify_hostname: "gotify"
|
gotify_hostname: "gotify"
|
||||||
|
|
||||||
|
# user to run container with
|
||||||
|
gotify_user_id: "0"
|
||||||
|
gotify_group_id: "0"
|
||||||
|
|
|
@ -1,4 +1,11 @@
|
||||||
---
|
---
|
||||||
|
- name: Create Gotify Data Directory
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
with_items:
|
||||||
|
- "{{ gotify_data_directory }}"
|
||||||
|
|
||||||
- name: Gotify Docker Container
|
- name: Gotify Docker Container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: gotify
|
name: gotify
|
||||||
|
@ -8,6 +15,11 @@
|
||||||
- "{{ gotify_port }}:80"
|
- "{{ gotify_port }}:80"
|
||||||
volumes:
|
volumes:
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
- "{{ gotify_data_directory }}:/app/data:rw"
|
||||||
|
env:
|
||||||
|
TZ: "{{ ansible_nas_timezone }}"
|
||||||
|
PUID: "{{ gotify_user_id }}"
|
||||||
|
PGID: "{{ gotify_group_id }}"
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
memory: 200m
|
memory: 200m
|
||||||
labels:
|
labels:
|
||||||
|
|
Loading…
Reference in a new issue