orrpan / pilight_docker

1 stars 0 forks source link

pilight using docker, alpine linux 3.12

GitHub Workflow Status Stable/Latest

GitHub Workflow Status Staging

Docker Pulls

platforms:

Run

docker run --rm -it -p 5001:5001 orrpan/pilight_docker:latest

docker-compose

version: '3.3'
services:
  pilight:
    container_name: pilight
    image: orrpan/pilight_docker:latest
    ports:
      - '5000-5003:5000-5003'
    environment:
      - TZ=Europe/Stockholm
    volumes:
      - '${HOME}/.pilight/:/etc/pilight/'
    restart: unless-stopped
    privileged: true
    #devices: # if you use usb
    # - /dev/ttyUSB0:/dev/ttyUSB0
    command:
      - /bin/sh
      - -c
      - |
        echo "sleep for 2sec"
        sleep 2
        /usr/local/sbin/pilight-daemon --foreground --config /etc/pilight/config.json