Page 1 of 1

domoticz with docker, a new dzevent script is without the template

Posted: Sunday 07 December 2025 15:32
by acaonweb
Version: 2025.2 (build 16818)
Platform: Docker
Description:
i have Domoticz into a container created with this stack

Code: Select all

version: '3.8'

services:
  domoticz:
    image: domoticz/domoticz:stable
    container_name: domoticz
    restart: unless-stopped
    depends_on:
      - mosquitto
    networks:
      myNetwork:
        ipv4_address: DOMOTICZ-IP
    ports:
      - "8080:8080"
    volumes:
      - /srv/dev-disk-by-uuid-36662cd8-800d-4017-83bc-40f63d06148e/domoticz:/opt/domoticz/userdata

  mosquitto:
    image: eclipse-mosquitto
    container_name: mosquitto
    restart: always
    volumes:
      - /srv/dev-disk-by-uuid-36662cd8-800d-4017-83bc-40f63d06148e/mqtt/config:/mosquitto/config
      - /srv/dev-disk-by-uuid-36662cd8-800d-4017-83bc-40f63d06148e/mqtt/data:/mosquitto/data
      - /srv/dev-disk-by-uuid-36662cd8-800d-4017-83bc-40f63d06148e/mqtt/log:/mosquitto/log
    networks:
      myNetwork:
        ipv4_address: MQTT-IP
    ports:
      - 1883:1883
      - 9001:9001
    stdin_open: true 
    tty: true

  homebridge:
    image: homebridge/homebridge:ubuntu
    container_name: homebridge-dz
    restart: always
    depends_on:
      - domoticz
    
    # network_mode: host
    networks:
      myNetwork:
        ipv4_address: HOMEBRIDGE-IP  #add ip here

    ports: 
      - "1968:1968"
              
    environment:
      - HOMEBRIDGE_CONFIG_UI_PORT=1968
    volumes:
      - /srv/dev-disk-by-uuid-83b6a8f9-5b92-4b9f-ab73-81c3cf7cc424/homebridge:/homebridge
      
networks:
  myNetwork:
    external: true
    name: myNetwork
everithing is working good
But when I create a new dzevents script, all the templates are disappered.
How can I have them again?
Screenshot 2025-12-07 alle 15.25.21.png
Screenshot 2025-12-07 alle 15.25.21.png (266.63 KiB) Viewed 86 times

Re: domoticz with docker, a new dzevent script is without the template

Posted: Sunday 07 December 2025 18:01
by domja
I had the same problem initially.

According to my setup log:

Code: Select all

docker exec -it domoticz bash
# cp scripts/templates userdata/scripts	// hiermee zijn de templates zichtbaar in de events editor
# cp scripts/dzVents userdata/scripts
# cp scripts/lua* userdata/scripts
# cp scripts/python userdata/scripts

Re: domoticz with docker, a new dzevent script is without the template

Posted: Sunday 07 December 2025 19:10
by acaonweb
Great!!!
it works!!!!
Thanx

F.