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.
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
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'.
sudo docker pull pfischi/edomi
sudo git clone https://github.com/pfischi/edomi-docker.git
cd edomi-docker
sudo docker pull centos:6.8
sudo docker build -t pfischi/edomi:latest .
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.
sudo cp docker-edomi.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl start docker-edomi.service
sudo systemctl enable docker-edomi.service
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