Files
nas-compose/utilities.docker-compose.yml
2022-12-28 22:18:42 +01:00

101 lines
2.6 KiB
YAML

services:
watchtower:
image: containrrr/watchtower
environment:
DOCKER_HOST: tcp://docker:2375
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
networks:
- docker
- gotify
secrets:
- source: watchtower_gotify_token
target: gotify_token
restart: unless-stopped
smokeping:
image: linuxserver/smokeping
networks:
- traefik
volumes:
- smokeping_data:/data/
#configs:
# - source: smokeping
# target: /config/
restart: unless-stopped
labels:
traefik.enable: true
traefik.http.routers.smokeping.rule: HostRegexp(`smokeping{subdomain:(\.[a-z0-9-]+)?}.dedicated.contact`)
ddclient:
image: linuxserver/ddclient
entrypoint: /data/entrypoint.sh
environment:
GOTIFY_ADDRESS: http://gotify
GOTIFY_TOKEN_FILE: /run/secrets/gotify_token
CLOUDFLARE_DOMAIN: ${DDCLIENT_CLOUDFLARE_DOMAIN-test.dedicated.contact}
CLOUDFLARE_TOKEN_FILE: /run/secrets/cloudflare_token
networks:
- gotify
volumes:
- ddclient_data:/data/
- ddclient_config:/config/
- ddclient_init:/custom-cont-init.d/:ro
configs:
- source: ddclient_config_tpl
target: /config/ddclient.conf.tpl
secrets:
- source: ddclient_gotify_token
target: gotify_token
- source: ddclient_cloudflare_token
target: cloudflare_token
restart: unless-stopped
networks:
docker:
external: true
gotify:
external: true
traefik:
external: true
volumes:
smokeping_data:
driver_opts:
type: none
o: bind
device: ${SERVICES_DIR?}/smokeping/volumes/data/
ddclient_data:
driver_opts:
type: none
o: bind
device: ${SERVICES_DIR?}/ddclient/volumes/data/
ddclient_config:
driver_opts:
type: none
o: bind
device: ${SERVICES_DIR?}/ddclient/volumes/config/
ddclient_init:
driver_opts:
type: none
o: bind
device: ${SERVICES_DIR?}/ddclient/volumes/init/
configs:
# smokeping:
# file: ${SERVICES_DIR?}/smokeping/config/
ddclient_config_tpl:
file: ${SERVICES_DIR?}/ddclient/configs/ddclient.conf.tpl
secrets:
watchtower_gotify_token:
file: ${SERVICES_DIR?}/watchtower/secrets/gotify_token
ddclient_gotify_token:
file: ${SERVICES_DIR?}/ddclient/secrets/gotify_token
ddclient_cloudflare_token:
file: ${SERVICES_DIR?}/ddclient/secrets/cloudflare_token