docker-bits/lsio/domoticz/docker-run.sh

21 lines
1.1 KiB
Bash
Raw Normal View History

2021-04-21 00:55:42 +00:00
# [Domoticz](https://www.domoticz.com) is a Home Automation System that lets you
# monitor and configure various devices like: Lights, Switches, various
# sensors/meters like Temperature, Rain, Wind, UV, Electra, Gas, Water and much
# more. Notifications/Alerts can be sent to any mobile device.
2021-04-10 10:16:29 +00:00
source ./.env
docker run -d \
--name=domoticz \
2022-04-02 00:45:58 +00:00
-e PUID=${PUID:-1024} `# for UserID` \
-e PGID=${PGID:-100} `# for GroupID` \
2021-04-13 00:58:58 +00:00
-e TZ=${TZ:-Europe/Amsterdam} `# Specify a timezone to use for example Europe/Amsterdam` \
2021-04-10 10:16:29 +00:00
-e WEBROOT=domoticz `# optional` `# Sets webroot to domoticz for usage with subfolder reverse proxy. Not needed unless reverse proxying.` \
2022-02-11 00:39:51 +00:00
-e DBASE=<path to database> `# optional` `# Sets path to database. Do not set unless you know what this does.` \
2021-04-10 10:16:29 +00:00
-p 8080:8080 `# WebUI` \
-p 6144:6144 `# Domoticz communication port.` \
-p 1443:1443 `# Domoticz communication port.` \
-v ${BASEDIR:-/volume1/docker}/domoticz/config:/config `# Where Domoticz stores config files and data.` \
2021-11-29 01:05:29 +00:00
--device path to device:path to device `# For passing through USB devices.` \
2021-04-10 10:16:29 +00:00
--restart unless-stopped \
ghcr.io/linuxserver/domoticz