This is a Dockerfile/image to build a container for SmarthomeNG.
Dockerfile links| Version | Flavor | Description | tags |
|---|---|---|---|
| SHNG v1.9.1 | slim | Optimized for size. Not all plugins will work. | v1.9.1-slim, v1.9-slim, v1-slim, slim |
| med | All plugins will work. Some need a self update wich is invoked automaticaly. | v1.9.1, v1.9, v1, latest | |
| visu | Like med but also includes smartVISU. | v1.9.1-visu, v1.9-visu, v1-visu, visu | |
| full | All dependencies fullfilled. | v1.9.1-full, v1.9-full, v1-full, full | |
| SHNG v1.9.0 | slim | Optimized for size. Not all plugins will work. | v1.9.0-slim |
| med | All plugins will work. Some need a self update wich is invoked automaticaly. | v1.9.0 | |
| full | All dependencies fullfilled. | v1.9.0-full |
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
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/adminsmartVISU 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) |
Content type
Image
Digest
Size
127.1 MB
Last updated
over 4 years ago
docker pull sagl/shng