This is a Dockerfile/image to build a container for SmarthomeNG.
To pull from docker hub:
docker pull henfri/smarthome-ng
Clone smartVISU to ./volume/html/smartvisu
:
git clone https://github.com/Martin-Gleiss/smartvisu.git ./volume/html/smartvisu
Example with web server docker-compose.yaml:
version: "3"
networks:
shng-net:
internal: true
services:
shng:
image: henfri/smarthome-ng
restart: "unless-stopped"
volumes:
- ./volumes:/mnt
ports:
- "2424:2424"
- "8383:8383"
networks:
- shng-net
smartvisu:
image: php:8.0-apache
#hostname: <your.hostname.tld>
depends_on:
- shng
restart: unless-stopped
volumes:
- ./volumes/html:/var/www/html/
ports:
- "80:80"
networks:
- shng-net
SmarthomNG admin interface available at
http://[host]:8383/admin
smartVISU web interface available at
http://[host]/smartvisu
Don't forget to adjust the driver settings in SmartVISU.
Name | Description |
---|---|
SKIP_CHOWN_CONF | Set to 1 to avoid running chown -Rf on /mnt/conf |
SKIP_CHOWN_DATA | Set to 1 to avoid running chown -Rf on /mnt/data |
SKIP_CHOWN_HTML | Set to 1 to avoid running chown -Rf and chmod g+.... on /mnt/html |
PUID | Set user ID for user smarthome |
PGID | set group ID for usergroup smrthome |
WWW_GID | add www group ID to user smarthome (also for smartvisu group) |
ADD_GID | add group ID to user smarthome (for example to allow USB access) |
- SmarthomeNG (Support Forum), SmartVISU (Support Forum)
- python@DockerHUB, PHP@DockerHUB
- Where to get help: Support Thread