Skip to content

hebe2k/edomi-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

edomi-docker (Edomi release: v1.48)

This is a docker implementation for Edomi, a PHP-based smarthome framework. For more information please refer to:

Official website Support forum

This instruction works for a Centos7 docker host. Other distributions need some adjustments.

1. Install docker

sudo tee /etc/yum.repos.d/docker.repo <<-'EOF'
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
sudo yum install docker-engine -y
sudo systemctl enable docker.service
sudo systemctl start docker.service

2. Build the Edomi Container

You now have two options: build from scratch or pull the ready-made image from Docker hub. The Image (and the Dockerfile) contains all packages needed by edomi. I've added openssh-server and additionally i've set the root password to '123456'.

2a Image from Docker hub

sudo docker pull pfischi/edomi

2b Built it from scratch

pull edomi-docker from github
sudo git clone https://github.com/pfischi/edomi-docker.git
cd edomi-docker
pull Centos 6.8 docker image and build it
sudo docker pull centos:6.8
sudo docker build -t pfischi/edomi:latest .

3. starting docker container

sudo docker run --name edomi -p 42900:80 -p 42901:443 -p 22222:22 -p 50000:50000/udp -p 50001:50001/udp -e KNXGATEWAY=192.168.178.4 -e KNXACTIVE=true -e HOSTIP=192.168.178.3 -d pfischi/edomi:latest

With this configuration the edomi web instance is reachable via http://:42900/admin and or https://:42901/admin, the ssh server with ssh -p 22222 . With The (optional) parameters KNXGATEWAY, KNXACTIVE and HOSTIP you can pre-configure some settings for Edomi. Leave it empty to do this via the Edomi admin webpage. Keep in mind to set "global_serverIP" in Edomi (or via docker run script 'HOSTIP') to your Docker host IP otherwise the KNX communication probably will not work. Change http and/or https port to your needs.

4. Autostart Edomi Docker container

sudo cp docker-edomi.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl start docker-edomi.service
sudo systemctl enable docker-edomi.service

5. Useful commands

check running / stopped container

sudo docker ps -a

stop the container

sudo docker stop edomi

start the container

sudo docker start edomi

get logs from container

sudo docker logs -f edomi

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%