Sign inSign up

sagl/shng

By sagl

•Updated over 4 years ago

SmarthomeNG

Image
0

1.5K

sagl/shng repository overview

⁠SmarthomNG

⁠Overview

This is a Dockerfile/image to build a container for SmarthomeNG.

VersionFlavorDescriptiontags
SHNG v1.9.1slimOptimized for size. Not all plugins will work.v1.9.1-slim, v1.9-slim, v1-slim, slim⁠
medAll plugins will work. Some need a self update wich is invoked automaticaly.v1.9.1, v1.9, v1, latest⁠
visuLike med but also includes smartVISU.v1.9.1-visu, v1.9-visu, v1-visu, visu⁠
fullAll dependencies fullfilled.v1.9.1-full, v1.9-full, v1-full, full⁠
SHNG v1.9.0slimOptimized for size. Not all plugins will work.v1.9.0-slim⁠
medAll plugins will work. Some need a self update wich is invoked automaticaly.v1.9.0⁠
fullAll dependencies fullfilled.v1.9.0-full⁠

⁠Quick Start

To pull from docker hub:

docker pull sagl/shng:latest

Clone smartVISU⁠ to ./volume/html/smartvisu:

git clone https://github.com/Martin-Gleiss/smartvisu.git ./volume/html/smartvisu
⁠Running

Example with web server docker-compose.yaml:

version: "3"

services:
  shng:
    image: sagl/shng:latest
    restart: "unless-stopped"
    environment:
      - TZ=Europe/Berlin
      #- SKIP_CHOWN_CONF=1
      #- SKIP_CHOWN_DATA=1
      #- SKIP_CHOWN_HTML=1
      #- PUID=1000
      #- PGID=1000
    volumes:
      - ./volumes:/mnt
    ports:
      - "2424:2424"
      - "8383:8383"
  
  smartvisu:
    image: php:8.0-apache
    #hostname: <your.hostname.tld>
    restart: unless-stopped
    volumes:
     - ./volumes/html:/var/www/html/
    ports:
      - "80:80"

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.

⁠Configuration Parameters

NameDescription
SKIP_CHOWN_CONFSet to 1 to avoid running chown -Rf on /mnt/conf
SKIP_CHOWN_DATASet to 1 to avoid running chown -Rf on /mnt/data
SKIP_CHOWN_HTMLSet to 1 to avoid running chown -Rf and chmod g+.... on /mnt/html
PUIDSet user ID for user smarthome
PGIDSet group ID for usergroup smrthome
WWW_GIDAdd www group ID to user smarthome (also for smartvisu group)
ADD_GIDAdd group ID to user smarthome (for example to allow USB access)

Tag summary

Content type

Image

Digest

Size

127.1 MB

Last updated

over 4 years ago

docker pull sagl/shng