Remove gotify
This commit is contained in:
@@ -9,7 +9,6 @@ services:
|
||||
PGID: ${NASCOMPOSE_GID?}
|
||||
networks:
|
||||
- traefik
|
||||
- gotify
|
||||
- downloads
|
||||
volumes:
|
||||
- mylar_config:/config/
|
||||
@@ -26,7 +25,6 @@ services:
|
||||
PGID: ${NASCOMPOSE_GID?}
|
||||
networks:
|
||||
- traefik
|
||||
- gotify
|
||||
- downloads
|
||||
volumes:
|
||||
- lazylibrarian_config:/config/
|
||||
@@ -42,7 +40,6 @@ services:
|
||||
PGID: ${NASCOMPOSE_GID?}
|
||||
networks:
|
||||
- traefik
|
||||
- gotify
|
||||
- downloads
|
||||
volumes:
|
||||
- sonarr_config:/config/
|
||||
@@ -58,7 +55,6 @@ services:
|
||||
PGID: ${NASCOMPOSE_GID?}
|
||||
networks:
|
||||
- traefik
|
||||
- gotify
|
||||
- downloads
|
||||
volumes:
|
||||
- radarr_config:/config/
|
||||
@@ -74,7 +70,6 @@ services:
|
||||
PGID: ${NASCOMPOSE_GID?}
|
||||
networks:
|
||||
- traefik
|
||||
- gotify
|
||||
volumes:
|
||||
- bazarr_config:/config/
|
||||
- data:/data
|
||||
@@ -99,8 +94,6 @@ services:
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
||||
gotify:
|
||||
external: true
|
||||
downloads:
|
||||
external: true
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
Contains the file `admin_password`
|
||||
|
||||
Environment variable file for the default admin password, this is because gotify doesn't support docker secrets yet
|
||||
https://github.com/gotify/server/issues/392
|
||||
@@ -1,28 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# usage: file_env VAR [DEFAULT]
|
||||
# ie: file_env 'XYZ_DB_PASSWORD' 'example'
|
||||
# (will allow for "$XYZ_DB_PASSWORD_FILE" to fill in the value of
|
||||
# "$XYZ_DB_PASSWORD" from a file, especially for Docker's secrets feature)
|
||||
file_env() {
|
||||
local var="$1"
|
||||
local fileVar="${var}_FILE"
|
||||
local def="${2:-}"
|
||||
if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then
|
||||
mysql_error "Both $var and $fileVar are set (but are exclusive)"
|
||||
fi
|
||||
local val="$def"
|
||||
if [ "${!var:-}" ]; then
|
||||
val="${!var}"
|
||||
elif [ "${!fileVar:-}" ]; then
|
||||
val="$(< "${!fileVar}")"
|
||||
fi
|
||||
export "$var"="$val"
|
||||
unset "$fileVar"
|
||||
}
|
||||
|
||||
cd /app
|
||||
|
||||
file_env 'GOTIFY_DEFAULTUSER_PASS'
|
||||
|
||||
./gotify-app "$@"
|
||||
4
docs/utilities.md
Normal file
4
docs/utilities.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# Bootstrap
|
||||
|
||||
### Environment variables
|
||||
- `NASCOMPOSE_SERVICES`: Absolute path to the `services` folder
|
||||
@@ -9,7 +9,6 @@ services:
|
||||
networks:
|
||||
- default
|
||||
- traefik
|
||||
- gotify
|
||||
- downloads
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
@@ -86,8 +85,6 @@ networks:
|
||||
|
||||
traefik:
|
||||
external: true
|
||||
gotify:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
torrents:
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
name: Notifications
|
||||
|
||||
services:
|
||||
gotify:
|
||||
image: gotify/server
|
||||
entrypoint: ./data/entrypoint.sh
|
||||
environment:
|
||||
GOTIFY_SERVER_PORT: 8080
|
||||
GOTIFY_DEFAULTUSER_PASS_FILE: /run/secrets/gotify_admin_password
|
||||
user: ${NASCOMPOSE_UID?}:${NASCOMPOSE_GID?}
|
||||
networks:
|
||||
- gotify
|
||||
- traefik
|
||||
volumes:
|
||||
- gotify_data:/app/data/
|
||||
secrets:
|
||||
- gotify_admin_password
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
traefik.enable: true
|
||||
traefik.http.services.gotify.loadbalancer.server.port: 8080
|
||||
|
||||
networks:
|
||||
gotify:
|
||||
name: gotify
|
||||
|
||||
traefik:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
gotify_data:
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: ${NASCOMPOSE_SERVICES?}/volumes/gotify/data/
|
||||
|
||||
secrets:
|
||||
gotify_admin_password:
|
||||
file: ${NASCOMPOSE_SERVICES?}/secrets/gotify/admin_password
|
||||
@@ -6,15 +6,9 @@ services:
|
||||
WATCHTOWER_INCLUDE_RESTARTING: true
|
||||
WATCHTOWER_INCLUDE_STOPPED: true
|
||||
WATCHTOWER_MONITOR_ONLY: true
|
||||
WATCHTOWER_NOTIFICATIONS: gotify
|
||||
WATCHTOWER_NOTIFICATION_GOTIFY_URL: http://gotify
|
||||
WATCHTOWER_NOTIFICATION_GOTIFY_TOKEN: /run/secrets/gotify_token
|
||||
# TODO: Set notification to Discord
|
||||
networks:
|
||||
- docker
|
||||
- gotify
|
||||
secrets:
|
||||
- source: watchtower_gotify_token
|
||||
target: gotify_token
|
||||
restart: unless-stopped
|
||||
|
||||
smokeping:
|
||||
@@ -56,8 +50,6 @@ services:
|
||||
networks:
|
||||
docker:
|
||||
external: true
|
||||
gotify:
|
||||
external: true
|
||||
traefik:
|
||||
external: true
|
||||
|
||||
@@ -79,7 +71,5 @@ volumes:
|
||||
device: ${NASCOMPOSE_SERVICES?}/volumes/heimdall/config/
|
||||
|
||||
secrets:
|
||||
watchtower_gotify_token:
|
||||
file: ${NASCOMPOSE_SERVICES?}/secrets/watchtower/gotify_token
|
||||
duckdns_token:
|
||||
file: ${NASCOMPOSE_SERVICES?}/secrets/duckdns/duckdns_token
|
||||
|
||||
Reference in New Issue
Block a user