update .gitignore and add diun service labels in multiple docker-compose files

This commit is contained in:
Peter Wood
2025-02-13 18:10:36 +00:00
parent 8b4b5aa78a
commit 44ff38a765
21 changed files with 70 additions and 43 deletions

3
.gitignore vendored
View File

@@ -1,10 +1,9 @@
cloudflare/tailscale/ cloudflare/tailscale/
nginxproxymanager/*/
media/audiobookshelf/ media/audiobookshelf/
ntfy/*/ ntfy/*/
vaultwarden/*/ vaultwarden/*/
pinchflat/ pinchflat/config/
homepage/config/logs/ homepage/config/logs/
speedtest/config/ speedtest/config/
caddy/ts-caddy/ caddy/ts-caddy/

View File

@@ -11,6 +11,8 @@ services:
- config:/opt/adguardhome/conf # app configuration - config:/opt/adguardhome/conf # app configuration
- work:/opt/adguardhome/work # app working directory - work:/opt/adguardhome/work # app working directory
restart: always restart: always
labels:
- diun.enable=true
volumes: volumes:
config: config:
driver: local driver: local

View File

@@ -13,6 +13,8 @@ services:
- net_admin - net_admin
- sys_module - sys_module
restart: unless-stopped restart: unless-stopped
labels:
- diun.enable=true
caddy: caddy:
image: caddy/caddy:latest image: caddy/caddy:latest
network_mode: service:ts-caddy network_mode: service:ts-caddy

View File

@@ -6,6 +6,8 @@ services:
command: tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN} command: tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN}
depends_on: depends_on:
- tailscale - tailscale
labels:
- diun.enable=true
tailscale: tailscale:
container_name: tailscale container_name: tailscale
image: tailscale/tailscale:stable image: tailscale/tailscale:stable
@@ -22,4 +24,6 @@ services:
command: tailscaled command: tailscaled
privileged: true privileged: true
restart: unless-stopped restart: unless-stopped
labels:
- diun.enable=true
networks: {} networks: {}

View File

@@ -13,6 +13,8 @@ services:
networks: networks:
- postgres - postgres
restart: unless-stopped restart: unless-stopped
labels:
- diun.enable=true
pgadmin: pgadmin:
container_name: pgadmin_container container_name: pgadmin_container
@@ -28,6 +30,8 @@ services:
networks: networks:
- postgres - postgres
restart: unless-stopped restart: unless-stopped
labels:
- diun.enable=true
networks: networks:
postgres: postgres:

View File

@@ -1,19 +1,22 @@
services: services:
diun: diun:
image: crazymax/diun:latest image: crazymax/diun:latest
command: serve command: serve
hostname: diun
volumes: volumes:
- ./data:/data - ./data:/data
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
environment: environment:
- TZ=America/New_York - TZ=America/New_York
- DIUN_WATCH_WORKERS=20 - DIUN_WATCH_WORKERS=20
- DIUN_WATCH_SCHEDULE=0 */6 * * * - DIUN_WATCH_SCHEDULE=0 */2 * * *
- DIUN_WATCH_JITTER=30s - DIUN_WATCH_JITTER=30s
- DIUN_DEFAULTS_NOTIFYON=new,update
- DIUN_PROVIDERS_DOCKER=true - DIUN_PROVIDERS_DOCKER=true
- DIUN_NOTIF_TELEGRAM_TOKEN=${TELEGRAM_TOKEN} - DIUN_NOTIF_TELEGRAM_TOKEN=${TELEGRAM_TOKEN}
- DIUN_NOTIF_TELEGRAM_CHATIDS=${TELEGRAM_CHAT_ID} - DIUN_NOTIF_TELEGRAM_CHATIDS=${TELEGRAM_CHAT_ID}
- LOG_LEVEL=debug
- LOG_JSON=false
labels: labels:
- diun.enable=true - diun.enable=true
restart: always restart: unless-stopped

View File

@@ -9,6 +9,5 @@ services:
# DOZZLE_REMOTE_HOST: tcp://ts-vperanda:2375|vperanda,tcp://ts-svr-office:2375 # DOZZLE_REMOTE_HOST: tcp://ts-vperanda:2375|vperanda,tcp://ts-svr-office:2375
DOZZLE_HOSTNAME: ${HOSTNAME} DOZZLE_HOSTNAME: ${HOSTNAME}
restart: unless-stopped restart: unless-stopped
networks: labels:
cloudflare_default: - diun.enable=true
external: true

View File

@@ -5,6 +5,8 @@ services:
image: ghcr.io/tailscale/golink:main image: ghcr.io/tailscale/golink:main
volumes: volumes:
- golinks_data:/home/nonroot - golinks_data:/home/nonroot
labels:
- diun.enable=true
volumes: volumes:
golinks_data: golinks_data:

View File

@@ -14,9 +14,13 @@ services:
NEXTAUTH_URL: ${NEXTAUTH_URL} NEXTAUTH_URL: ${NEXTAUTH_URL}
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY} MEILI_MASTER_KEY: ${MEILI_MASTER_KEY}
DATA_DIR: /data DATA_DIR: /data
labels:
- diun.enable=true
chrome: chrome:
image: gcr.io/zenika-hub/alpine-chrome:123 image: gcr.io/zenika-hub/alpine-chrome:123
restart: unless-stopped restart: unless-stopped
labels:
- diun.enable=true
command: command:
- --no-sandbox - --no-sandbox
- --disable-gpu - --disable-gpu
@@ -31,6 +35,8 @@ services:
MEILI_NO_ANALYTICS: true MEILI_NO_ANALYTICS: true
volumes: volumes:
- meilisearch:/meili_data - meilisearch:/meili_data
labels:
- diun.enable=true
volumes: volumes:
meilisearch: meilisearch:

View File

@@ -12,3 +12,5 @@ services:
- ./config:/app/config - ./config:/app/config
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped restart: unless-stopped
labels:
- diun.enable=true

View File

@@ -29,6 +29,8 @@ services:
depends_on: depends_on:
postgres: postgres:
condition: service_healthy condition: service_healthy
labels:
- diun.enable=true
postgres: postgres:
container_name: postgres container_name: postgres
image: postgres:15 image: postgres:15
@@ -45,11 +47,8 @@ services:
interval: 30s interval: 30s
timeout: 20s timeout: 20s
retries: 3 retries: 3
labels:
- diun.enable=true
volumes: volumes:
mealie-data: null mealie-data: null
mealie-pgdata: null mealie-pgdata: null
networks:
cloudflare_default:
external: true
x-dockge:
urls: []

View File

@@ -24,6 +24,8 @@ services:
- TZ=America/New_York # Timezone for accurate log times - TZ=America/New_York # Timezone for accurate log times
- SERVER_COUNTRIES=United States - SERVER_COUNTRIES=United States
restart: always restart: always
labels:
- diun.enable=true
sabnzbd: sabnzbd:
image: lscr.io/linuxserver/sabnzbd:latest image: lscr.io/linuxserver/sabnzbd:latest
container_name: sabnzbd container_name: sabnzbd
@@ -39,6 +41,8 @@ services:
# network_mode: "service:gluetun" forces sabnzbd to connect to the internet through the VPN defined in the gluetun container above # network_mode: "service:gluetun" forces sabnzbd to connect to the internet through the VPN defined in the gluetun container above
network_mode: service:gluetun network_mode: service:gluetun
restart: always restart: always
labels:
- diun.enable=true
sonarr: sonarr:
image: lscr.io/linuxserver/sonarr:latest image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr container_name: sonarr
@@ -55,9 +59,9 @@ services:
- /data/usenet/downloads:/downloads - /data/usenet/downloads:/downloads
ports: ports:
- 8989:8989 - 8989:8989
networks:
- cloudflare_default
restart: always restart: always
labels:
- diun.enable=true
radarr: radarr:
image: lscr.io/linuxserver/radarr:latest image: lscr.io/linuxserver/radarr:latest
container_name: radarr container_name: radarr
@@ -74,8 +78,6 @@ services:
- /data/usenet/downloads:/downloads - /data/usenet/downloads:/downloads
ports: ports:
- 7878:7878 - 7878:7878
networks:
- cloudflare_default
restart: always restart: always
prowlarr: prowlarr:
image: lscr.io/linuxserver/prowlarr:latest image: lscr.io/linuxserver/prowlarr:latest
@@ -88,9 +90,9 @@ services:
- /docker/config/prowlarr:/config - /docker/config/prowlarr:/config
ports: ports:
- 9696:9696 - 9696:9696
networks:
- cloudflare_default
restart: always restart: always
labels:
- diun.enable=true
tautulli: tautulli:
image: lscr.io/linuxserver/tautulli:latest image: lscr.io/linuxserver/tautulli:latest
container_name: tautulli container_name: tautulli
@@ -102,9 +104,9 @@ services:
- tautulli:/config - tautulli:/config
ports: ports:
- 8181:8181 - 8181:8181
networks:
- cloudflare_default
restart: always restart: always
labels:
- diun.enable=true
audiobookshelf: audiobookshelf:
image: ghcr.io/advplyr/audiobookshelf:latest image: ghcr.io/advplyr/audiobookshelf:latest
container_name: audiobookshelf container_name: audiobookshelf
@@ -118,12 +120,10 @@ services:
- ./audiobookshelf/metadata:/metadata - ./audiobookshelf/metadata:/metadata
environment: environment:
- TZ=America/New_York - TZ=America/New_York
labels:
- diun.enable=true
volumes: volumes:
gluetun_data: null gluetun_data: null
sabnzbd_data: null sabnzbd_data: null
tautulli: null tautulli: null
networks:
cloudflare_default:
external: true

View File

@@ -9,7 +9,5 @@ services:
networks: networks:
- cloudflare_default - cloudflare_default
restart: unless-stopped restart: unless-stopped
labels:
networks: - diun.enable=true
cloudflare_default:
external: true

View File

@@ -13,4 +13,5 @@ services:
- 7081:8081 - 7081:8081
volumes: volumes:
- /mnt/share/media/metube:/downloads - /mnt/share/media/metube:/downloads
networks: {} labels:
- diun.enable=true

View File

@@ -25,13 +25,13 @@ services:
DB_MYSQL_USER: npm DB_MYSQL_USER: npm
DB_MYSQL_PASSWORD: npm DB_MYSQL_PASSWORD: npm
DB_MYSQL_NAME: npm DB_MYSQL_NAME: npm
networks:
- cloudflare_default
volumes: volumes:
- ./data:/data - ./data:/data
- ./letsencrypt:/etc/letsencrypt - ./letsencrypt:/etc/letsencrypt
depends_on: depends_on:
- db - db
labels:
- diun.enable=true
db: db:
image: jc21/mariadb-aria:latest image: jc21/mariadb-aria:latest
restart: unless-stopped restart: unless-stopped
@@ -42,6 +42,5 @@ services:
MYSQL_PASSWORD: npm MYSQL_PASSWORD: npm
volumes: volumes:
- ./mysql:/var/lib/mysql - ./mysql:/var/lib/mysql
networks: labels:
cloudflare_default: - diun.enable=true
external: true

View File

@@ -15,3 +15,5 @@ services:
- 4080:80 - 4080:80
- 4443:443 - 4443:443
restart: unless-stopped restart: unless-stopped
labels:
- diun.enable=true

View File

@@ -23,4 +23,6 @@ services:
UI_HOMEDESCRIPTION: "" UI_HOMEDESCRIPTION: ""
UI_APPNAMENAVBAR: "" UI_APPNAMENAVBAR: ""
SYSTEM_MAXFILESIZE: "100" SYSTEM_MAXFILESIZE: "100"
restart: unless-stopped restart: unless-stopped
labels:
- diun.enable=true

View File

@@ -8,6 +8,6 @@ services:
- ./config:/config - ./config:/config
- /mnt/share/media/youtube:/downloads - /mnt/share/media/youtube:/downloads
image: ghcr.io/kieraneglin/pinchflat:latest image: ghcr.io/kieraneglin/pinchflat:latest
networks: restart: unless-stopped
cloudflare_default: labels:
external: true - diun.enable=true

View File

@@ -18,4 +18,5 @@ services:
volumes: volumes:
- ./config:/config - ./config:/config
restart: unless-stopped restart: unless-stopped
networks: {} labels:
- diun.enable=true

View File

@@ -7,8 +7,9 @@ services:
ports: ports:
- 6001:3001 - 6001:3001
restart: unless-stopped restart: unless-stopped
labels:
- diun.enable=true
volumes: volumes:
uptime-kuma: uptime-kuma:
name: uptime-kuma name: uptime-kuma
external: true external: true

View File

@@ -14,7 +14,8 @@ services:
- ROCKET_PORT=80 - ROCKET_PORT=80
- ROCKET_PROFILE=release - ROCKET_PROFILE=release
restart: always restart: always
labels:
- diun.enable=true
volumes: volumes:
vaultwarden_data: vaultwarden_data:
name: vaultwarden_data name: vaultwarden_data