Coder Social home page Coder Social logo

smarthome-docker's Introduction

SmarthomeNG dockerfile

Join the chat at https://gitter.im/smarthomeNG/docker

Overview

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

Quick Start

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

Running

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.

Configuration Parameters

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)

Links

smarthome-docker's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.