Oficial Docker Container Topic is solved

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

Post Reply
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Oficial Docker Container

Post by DAVIZINHO »

hello to all
im try to setup fail2ban inside the docker container.
someone can try this??

i setup all as the tutorial of fail2ban but not works :-(
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Oficial Docker Container

Post by EddyG »

Fail2ban uses logfiles, and those logfiles are not present inside the domoticz container.
You should setup fail2ban on the Raspberry OS itself.
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Oficial Docker Container

Post by DAVIZINHO »

EddyG wrote: Saturday 07 August 2021 19:44 Fail2ban uses logfiles, and those logfiles are not present inside the domoticz container.
You should setup fail2ban on the Raspberry OS itself.
Not exactly.
You can setup de logfiles in the domoticz container only editing one user variable. I have it in /etc/domoticz.txt

And i use docker in synology not raspberry :-)
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Oficial Docker Container

Post by EddyG »

Oke, you only want to protect the domoticz container with fail2ban.
Perhaps you could make a new container which include fail2ban and all of the dependencies.
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Oficial Docker Container

Post by DAVIZINHO »

now i have fail2ban teorically runing.
I install it, disable the sshd profile in the jail.conf
after this start service fail2ban, i monitor the state and check if really works. i will tell here
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Oficial Docker Container

Post by EddyG »

You could also use a fail2ban synology container en monitor the domoticz.log file.
See: https://github.com/sosandroid/docker-fail2ban-synology
User avatar
bartplessers
Posts: 12
Joined: Sunday 28 July 2019 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Oficial Docker Container

Post by bartplessers »

Where is the location of the theme's if domoticz is running in docker?


My docker-compose:

Code: Select all

version: '3.3'

services:
  domoticz:
    image: domoticz/domoticz
    container_name: domoticz
    restart: unless-stopped
    # Pass devices to container
    # devices:
    #   - "/dev/serial/by-id/usb-0658_0200-if00:/dev/ttyACM0"
    ports:
      - "8080:8080"
    volumes:
      - ./config:/opt/domoticz/userdata
    environment:
      - TZ=Europe/Amsterdam
      #- LOG_PATH=/opt/domoticz/userdata/domoticz.log
to add a plugin, I did following

Code: Select all

cd /opt/domoticz/config/plugins
git clone https://github.com/stas-demydiuk/domoticz-zigbee2mqtt-plugin.git zigbee2mqtt
docker restart domoticz
This worked for me, and plugin is available and working



However, to add a theme, following did NOT work

Code: Select all

cd /opt/domoticz/config/www/styles
git clone https://github.com/domoticz/machinon.git machinon
docker restart domoticz
QUESTION
Where do I have to place my themes to get them available in domoticz?

kind regards,
Bart Plessers
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Oficial Docker Container

Post by DAVIZINHO »

i find a solution but probably is not the best solution.
I map a folder in my local called themes and maped to the folder /themes2 in the container.
enter in the container and COPY all the files of origintal themes folder to my /themes2 folder
stop the container
change the maped folder and now my local themes maped to the original route in the container /themes

Now the themes folder are visible out of the container and you can put your personal themes and domoticz detect it
antonlamers
Posts: 14
Joined: Wednesday 08 March 2017 14:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: NL
Contact:

Re: Oficial Docker Container

Post by antonlamers »

Hi
Yesterday I did update the container.
Now is the screen view from everyting wrong

Version: 2021.1 (build 13689)
Build Hash: d29a27ffe
Compile Date: 2021-10-05 08:15:57
dzVents Version: 3.1.8
Python Version: 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]
Attachments
Naamloos.jpg
Naamloos.jpg (289.91 KiB) Viewed 10077 times
Last edited by antonlamers on Wednesday 06 October 2021 12:17, edited 1 time in total.
Greating,
Anton
Version: 2023.2
Build Hash: 19efd039c
Compile Date: 2023-07-21 17:23:44
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Oficial Docker Container

Post by DAVIZINHO »

same for me, i think its a cache failure. but i not have time to clear it in the brower and test again
antonlamers
Posts: 14
Joined: Wednesday 08 March 2017 14:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: NL
Contact:

Re: Oficial Docker Container

Post by antonlamers »

I don't think it's a cache failure, because it's also on the phone and other computers
Greating,
Anton
Version: 2023.2
Build Hash: 19efd039c
Compile Date: 2023-07-21 17:23:44
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Oficial Docker Container

Post by DAVIZINHO »

still have this problem in 13703
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Oficial Docker Container

Post by waltervl »

Try with browser in incognito/privacy mode. If it works you have to clear your browser cache (see my signature for a link to the instruction)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Oficial Docker Container

Post by DAVIZINHO »

waltervl wrote: Saturday 09 October 2021 22:12 Try with browser in incognito/privacy mode. If it works you have to clear your browser cache (see my signature for a link to the instruction)
same problem for me in incognito/privacy mode with various browsers
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Oficial Docker Container

Post by waltervl »

Are you using the default theme as some custom theme like machinon and aurora were not working anymore due to a change in theme processing. If you are on default theme then this change is not docker compatible it seems.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Oficial Docker Container

Post by DAVIZINHO »

waltervl wrote: Sunday 10 October 2021 0:35 Are you using the default theme as some custom theme like machinon and aurora were not working anymore due to a change in theme processing. If you are on default theme then this change is not docker compatible it seems.
I use default theme in docker
:-(
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Oficial Docker Container

Post by waltervl »

I made a note in Github issue https://github.com/domoticz/domoticz/issues/4960
Could be the same issue...
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Oficial Docker Container

Post by waltervl »

Please note that you can now also use Stable 2021.1 in docker (although I do not know how to load that)

https://hub.docker.com/r/domoticz/domoticz/tags
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

Re: Oficial Docker Container

Post by DAVIZINHO »

waltervl wrote: Thursday 14 October 2021 16:05 Please note that you can now also use Stable 2021.1 in docker (although I do not know how to load that)

https://hub.docker.com/r/domoticz/domoticz/tags
in synology when you download the image, you can select the stable tag. the latest is the beta.
where do you use docker?
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Oficial Docker Container

Post by waltervl »

I do not use docker, just bringing the news.....
As the developer of the new tags is not documenting it I hope someone here knows how to use this :-)
The documentation is on Github https://github.com/domoticz/domoticz-docker
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest