Skip to content

Commit 2955f36

Browse files
committed
Merge remote-tracking branch 'SensorsIot/master' into Portainer-agent
2 parents 4324578 + 1b6ea53 commit 2955f36

32 files changed

+873
-287
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
/services/
33
/volumes/
44
/backups/
5+
/.tmp/*
56
docker-compose.yml
6-
.outofdate
7+
.outofdate
8+
9+
!.gitkeep

.templates/deconz/build.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
3+
#deCONZ device configuration
4+
5+
DOCKER_COMPOSE_PATH=./.tmp/docker-compose.tmp.yml
6+
7+
if [[ ! -f $DOCKER_COMPOSE_PATH ]]; then
8+
echo "[deCONZ] Warning: $DOCKER_COMPOSE_PATH does not exist."
9+
fi
10+
11+
device_selection=$(whiptail --radiolist --title "Select deCONZ gateway" --notags \
12+
"Use the [SPACEBAR] to select your deCONZ gateway from the list below AND MAKE SURE IT IS PLUGGED IN (if not, press [ESC])." 20 78 12 \
13+
"ConBeeII" "ConBee II " "ON" \
14+
"ConBee" "ConBee " "OFF" \
15+
"RaspBee" "RaspBee " "OFF" \
16+
3>&1 1>&2 2>&3)
17+
18+
case $device_selection in
19+
20+
"ConBeeII")
21+
if [[ ! -f ./.templates/deconz/service_conbee_II.yml ]]; then
22+
echo "Error: ./.templates/deconz/service_conbee_II.yml does not exist."
23+
else
24+
cat ./.templates/deconz/service_conbee_II.yml >> $DOCKER_COMPOSE_PATH
25+
echo "...copied ConBee II config from template"
26+
fi
27+
;;
28+
"ConBee")
29+
if [[ ! -f ./.templates/deconz/service_conbee.yml ]]; then
30+
echo "Error: ./.templates/deconz/service_conbee.yml does not exist."
31+
else
32+
cat ./.templates/deconz/service_conbee.yml >> $DOCKER_COMPOSE_PATH
33+
echo "...copied ConBee config from template"
34+
fi
35+
;;
36+
"RaspBee")
37+
if [[ ! -f ./.templates/deconz/service_raspbee.yml ]]; then
38+
echo "Error: ./.templates/deconz/service_raspbee.yml does not exist."
39+
else
40+
cat ./.templates/deconz/service_raspbee.yml >> $DOCKER_COMPOSE_PATH
41+
echo "...copied RaspBee config from template"
42+
fi
43+
;;
44+
esac

.templates/deconz/service.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

.templates/deconz/service_conbee.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
deconz:
2+
image: marthoc/deconz
3+
container_name: deconz
4+
restart: unless-stopped
5+
ports:
6+
- '8090:80'
7+
- '443:443'
8+
- '5901:5900'
9+
volumes:
10+
- ./volumes/deconz/:/root/.local/share/dresden-elektronik/deCONZ
11+
devices:
12+
#ConBee:
13+
- /dev/ttyUSB0
14+
environment:
15+
- DECONZ_VNC_MODE=1
16+
- DECONZ_VNC_PASSWORD=changeme
17+
- DEBUG_INFO=1
18+
- DEBUG_APS=0
19+
- DEBUG_ZCL=0
20+
- DEBUG_ZDP=0
21+
- DEBUG_OTAU=0
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
deconz:
2+
image: marthoc/deconz
3+
container_name: deconz
4+
restart: unless-stopped
5+
ports:
6+
- '8090:80'
7+
- '443:443'
8+
- '5901:5900'
9+
volumes:
10+
- ./volumes/deconz/:/root/.local/share/dresden-elektronik/deCONZ
11+
devices:
12+
#ConBee II:
13+
- /dev/ttyACM0
14+
environment:
15+
- DECONZ_VNC_MODE=1
16+
- DECONZ_VNC_PASSWORD=changeme
17+
- DEBUG_INFO=1
18+
- DEBUG_APS=0
19+
- DEBUG_ZCL=0
20+
- DEBUG_ZDP=0
21+
- DEBUG_OTAU=0

.templates/deconz/service_raspbee.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
deconz:
2+
image: marthoc/deconz
3+
container_name: deconz
4+
restart: unless-stopped
5+
ports:
6+
- '8090:80'
7+
- '443:443'
8+
- '5901:5900'
9+
volumes:
10+
- ./volumes/deconz/:/root/.local/share/dresden-elektronik/deCONZ
11+
devices:
12+
#RaspBee:
13+
- /dev/ttyAMA0
14+
#alternatively - /dev/ttyS0
15+
environment:
16+
- DECONZ_VNC_MODE=1
17+
- DECONZ_VNC_PASSWORD=changeme
18+
- DEBUG_INFO=1
19+
- DEBUG_APS=0
20+
- DEBUG_ZCL=0
21+
- DEBUG_ZDP=0
22+
- DEBUG_OTAU=0

.templates/dozzle/service.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
dozzle:
2+
container_name: dozzle
3+
image: amir20/dozzle:latest
4+
restart: unless-stopped
5+
network_mode: host
6+
ports:
7+
- 8888:8080
8+
volumes:
9+
- /var/run/docker.sock:/var/run/docker.sock

.templates/gitea/gitea.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# initially empty

.templates/gitea/service.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
gitea:
2+
container_name: gitea
3+
image: kapdap/gitea-rpi
4+
restart: unless-stopped
5+
user: "0"
6+
ports:
7+
- "7920:3000/tcp"
8+
- "2222:22/tcp"
9+
env_file:
10+
- ./services/gitea/gitea.env
11+
volumes:
12+
- ./volumes/gitea/data:/data
13+
- /etc/timezone:/etc/timezone:ro
14+
- /etc/localtime:/etc/localtime:ro

.templates/grafana/service.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
grafana:
22
container_name: grafana
3-
image: grafana/grafana:6.3.6
3+
image: grafana/grafana
44
restart: unless-stopped
55
user: "0"
66
ports:

0 commit comments

Comments
 (0)