Files
nas-compose/utilities.docker-compose.yml
Colin Hebert 3039b3e51e Add smokeping
2022-12-26 15:51:21 +01:00

57 lines
1.0 KiB
YAML

services:
diun:
image: crazymax/diun
networks:
- docker
- gotify
volumes:
- diun:/data
configs:
- source: diun
target: /etc/diun/
secrets:
- gotify_token
restart: unless-stopped
smokeping:
image: linuxserver/smokeping
networks:
- traefik
volumes:
- smokeping:/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`)
networks:
docker:
external: true
gotify:
external: true
volumes:
diun:
driver_opts:
type: none
o: bind
device: ${MOUNT_DIR?}/diun/data/
smokeping:
driver_opts:
type: none
o: bind
device: ${MOUNT_DIR?}/smokeping/data/
configs:
diun:
file: ${MOUNT_DIR?}/diun/config/
# smokeping:
# file: ${MOUNT_DIR?}/smokeping/config/
secrets:
gotify_token:
file: ${MOUNT_DIR?}/diun/secrets/gotify_token