Page 5 of 11

Re: Oficial Docker Container

Posted: Saturday 07 August 2021 18:34
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 :-(

Re: Oficial Docker Container

Posted: Saturday 07 August 2021 19:44
by EddyG
Fail2ban uses logfiles, and those logfiles are not present inside the domoticz container.
You should setup fail2ban on the Raspberry OS itself.

Re: Oficial Docker Container

Posted: Saturday 07 August 2021 20:34
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 :-)

Re: Oficial Docker Container

Posted: Saturday 07 August 2021 21:08
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.

Re: Oficial Docker Container

Posted: Saturday 07 August 2021 21:15
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

Re: Oficial Docker Container

Posted: Sunday 08 August 2021 10:59
by EddyG
You could also use a fail2ban synology container en monitor the domoticz.log file.
See: https://github.com/sosandroid/docker-fail2ban-synology

Re: Oficial Docker Container

Posted: Wednesday 11 August 2021 11:46
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

Re: Oficial Docker Container

Posted: Wednesday 11 August 2021 11:52
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

Re: Oficial Docker Container

Posted: Wednesday 06 October 2021 12:14
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]

Re: Oficial Docker Container

Posted: Wednesday 06 October 2021 12:16
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

Re: Oficial Docker Container

Posted: Wednesday 06 October 2021 12:19
by antonlamers
I don't think it's a cache failure, because it's also on the phone and other computers

Re: Oficial Docker Container

Posted: Saturday 09 October 2021 20:13
by DAVIZINHO
still have this problem in 13703

Re: Oficial Docker Container

Posted: Saturday 09 October 2021 22:12
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)

Re: Oficial Docker Container

Posted: Saturday 09 October 2021 22:25
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

Re: Oficial Docker Container

Posted: Sunday 10 October 2021 0:35
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.

Re: Oficial Docker Container

Posted: Sunday 10 October 2021 9:32
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
:-(

Re: Oficial Docker Container

Posted: Sunday 10 October 2021 9:42
by waltervl
I made a note in Github issue https://github.com/domoticz/domoticz/issues/4960
Could be the same issue...

Re: Oficial Docker Container

Posted: Thursday 14 October 2021 16:05
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

Re: Oficial Docker Container

Posted: Thursday 14 October 2021 19:14
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?

Re: Oficial Docker Container

Posted: Thursday 14 October 2021 21:16
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