forked from HomeSeerLinux/homeseer-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·44 lines (39 loc) · 1.08 KB
/
run.sh
File metadata and controls
executable file
·44 lines (39 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash -e
##############################################
# HOMESEER (V4) LINUX - DOCKER RUN CONTAINER
##############################################
# Load environment variables from .env file if it exists and check if variables are set
source .env
./env-check.sh
docker run \
--interactive \
--tty \
--name homeseer \
--volume /etc/homeseer:/homeseer \
--publish 80:80 \
--publish 10200:10200 \
--publish 10300:10300 \
--publish 10401:10401 \
--publish 11000:11000 \
--device /dev/ttyACM0 \
--env TZ=$TZ \
--env LANG=$LANG \
--env HOMESEER_CREDENTIALS="default:default" \
--restart always \
--detach \
${IMAGE_OUTPUT}:latest $@
# PUBLISHED IP PORTS
# -------------------------
# 80 : HTTP/WEB
# 10200 : HS-TOUCH
# 10300 : myHS
# 10401 : SPEAKER CLIENTS
# 11000 : ASCII/JSON REMOTE API
# OTHER COMMON OPTIONS
# -------------------------
# --detach
# --restart always
# --device /dev/ttyUSB0
# --device /dev/ttyUSB1
# --device /dev/ttyACM0
# --volume /etc/localtime:/etc/localtime:ro