From 86ed33513dc108ed85ea4b351cffcda25e75e4c6 Mon Sep 17 00:00:00 2001 From: jaydee Date: Sun, 30 Nov 2025 18:26:06 +0100 Subject: [PATCH] build --- __swarm/motioneye/motioneye-swarm.yml | 37 +++++++++++++++++++++++++++ __swarm/pihole/pihole-swarm.yml | 10 ++++++-- 2 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 __swarm/motioneye/motioneye-swarm.yml diff --git a/__swarm/motioneye/motioneye-swarm.yml b/__swarm/motioneye/motioneye-swarm.yml new file mode 100644 index 0000000..5f6528c --- /dev/null +++ b/__swarm/motioneye/motioneye-swarm.yml @@ -0,0 +1,37 @@ +services: + motioneye: + dns: + - 192.168.77.101 + environment: + TZ: Europe/Bratislava + image: ${DOCKER_REGISTRY:-}ghcr.io/motioneye-project/motioneye:edge + ports: + - target: 8081 + published: 8081 + protocol: tcp + mode: ingress + - target: 8765 + published: 8765 + protocol: tcp + mode: ingress + volumes: + - /etc/localtime:/etc/localtime:ro + - /share/docker_data/motioneye/etc_motioneye:/etc/motioneye + - /share/docker_data/motioneye/var_lib_motioneye:/var/lib/motioneye + deploy: + labels: + com.centurylinklabs.watchtower.enable: 'true' + homepage.container: motioneye + homepage.description: Video manager + homepage.group: Media + homepage.href: http://m-server.home.lan:8765/ + homepage.icon: /images/motioneye.webp + homepage.name: MotionEye + homepage.server: my-docker-swarm + homepage.weight: '1' + wud.watch: 'true' + wud.watch.digest: 'true' + replicas: 1 + placement: + constraints: + - node.role == manager diff --git a/__swarm/pihole/pihole-swarm.yml b/__swarm/pihole/pihole-swarm.yml index 4033c08..7771281 100644 --- a/__swarm/pihole/pihole-swarm.yml +++ b/__swarm/pihole/pihole-swarm.yml @@ -1,3 +1,9 @@ +volumes: + pihole_etc_pihole: + driver: local + pihole_etc_dnsmasq_d: + driver: local + networks: pihole: driver: overlay @@ -35,8 +41,8 @@ services: protocol: tcp mode: ingress volumes: - - /share/docker_data/pihole/etc-pihole:/etc/pihole - - /share/docker_data/pihole/etc-dnsmasq.d:/etc/dnsmasq.d + - pihole_etc_pihole:/etc/pihole + - pihole_etc_dnsmasq_d:/etc/dnsmasq.d deploy: labels: com.centurylinklabs.watchtower.enable: 'true'