Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Portainer Agent #123

Open
wants to merge 103 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
a8d02a2
Added Portainer Agent
Willem-Dekker Jan 2, 2020
48b67d9
Update directoryfix.sh
kauffman-repo Jan 9, 2020
09351d6
Update directoryfix.sh
kauffman-repo Jan 9, 2020
a39d01c
Adds a Gitea container to IOTstack
Paraphraser Jan 12, 2020
eb9b982
Added filter.acl file to mosquitto/config
Tomasmerca Jan 15, 2020
c4adb55
Created empty file whit example filter
Tomasmerca Jan 15, 2020
89f4647
Added options for password and filter config
Tomasmerca Jan 15, 2020
72e6345
Update menu.sh
RavHilton Feb 6, 2020
818063f
adding deconz docker compose setup
DIYtechie Feb 28, 2020
6461ed1
deconz added to menu
DIYtechie Feb 28, 2020
413c0ae
Update service.yml
DIYtechie Mar 2, 2020
050fdb1
deconz added
DIYtechie Mar 2, 2020
614e56e
added node-red-contrib-deconz
DIYtechie Mar 2, 2020
cb3e1b0
added transmission container
gpongelli Mar 22, 2020
7751ed0
add volumes management from template
gpongelli Mar 22, 2020
da5a549
update menu.sh
peyanski Apr 4, 2020
d5b991b
small update to container name
Willem-Dekker Apr 19, 2020
b068114
first import
Willem-Dekker Apr 19, 2020
d4a9cd1
Merge pull request #1 from Willem-Dekker/mkdocks
Willem-Dekker Apr 19, 2020
f6571ae
added index.md
Willem-Dekker Apr 19, 2020
55542d4
added index.md (#2)
Willem-Dekker Apr 19, 2020
96454c9
Updated styling of existing pages
Willem-Dekker Apr 19, 2020
171283a
Merge pull request #3 from Willem-Dekker/mkdocks
Willem-Dekker Apr 19, 2020
7bf68e7
Updated styling of existing pages
Willem-Dekker Apr 19, 2020
1646a7a
Merge pull request #20 from Willem-Dekker/mkdocks
SensorsIot Apr 19, 2020
a9afc96
Update README.md
SensorsIot Apr 19, 2020
50cbf52
Update README.md
SensorsIot Apr 19, 2020
0b2385b
Merge pull request #16 from SensorsIot/pr/161
Willem-Dekker Apr 19, 2020
5d0c85a
Changed each menu item to be on a separate line to make merges easier.
Apr 19, 2020
4f8a47d
Merge branch 'armhf_keys_menu_lines' into pr/126
Apr 20, 2020
52ddbcb
Changed docker-compose yml file version to 3.6.
Apr 20, 2020
d464d0f
Merge pull request #26 from SensorsIot/armhf_keys_menu_lines
Willem-Dekker Apr 20, 2020
65e48e0
Merge pull request #7 from SensorsIot/pr/139
Willem-Dekker Apr 20, 2020
67e0056
Merge pull request #3 from SensorsIot/pr/126
Willem-Dekker Apr 20, 2020
15d840b
Update README.md
Slyke Apr 20, 2020
a3078f2
Merge pull request #27 from SensorsIot/readme-update
Willem-Dekker Apr 20, 2020
d86a5cd
Merge pull request #4 from SensorsIot/pr/130
Willem-Dekker Apr 20, 2020
a7d37c0
Fixes some inconsistencies and makes other tweaks to index page
Paraphraser Apr 21, 2020
e82dac8
Fixed typo in readme (PRi --> RPi)
Apr 21, 2020
7889207
Added docker version check
Apr 21, 2020
93b10ad
Merge pull request #31 from Paraphraser/20200421-doco-index
Willem-Dekker Apr 21, 2020
3e3b8fe
Merge pull request #32 from SensorsIot/docker-version-check
Slyke Apr 21, 2020
fec3260
Merge pull request #8 from SensorsIot/pr/143
Slyke Apr 21, 2020
c133968
Merge pull request #10 from SensorsIot/pr/151
Slyke Apr 21, 2020
c23d787
Merge pull request #17 from SensorsIot/pr/169
Slyke Apr 21, 2020
dc1c366
Merge branch 'master' into PR_add_volumes_to_script
gpongelli Apr 21, 2020
47fde77
Update README.md
Slyke Apr 22, 2020
b36b7b3
Added a check to see if docker is installed before attempting to get …
Apr 22, 2020
e95298f
Removed bookmark from transmission volumes.yml
gpongelli Apr 22, 2020
1936989
Create default directories on build
Apr 25, 2020
7689228
Merge pull request #23 from gpongelli/PR_add_volumes_to_script
Slyke Apr 25, 2020
4976473
Added requirements.txt for Python 3
Apr 25, 2020
694778f
Added YAML merging Python script, with menu script modifications. Add…
Apr 26, 2020
18010cd
Removed testing override file and useless comment
Apr 26, 2020
186c2c0
Added loader option to avoid errors on some systems
Apr 26, 2020
ba686ad
added timescaledb
gpongelli Apr 26, 2020
1ce3b57
Add timescaledb in menu.sh
gpongelli Apr 26, 2020
78ae80f
Added in Python, pip and PyYaml version checking
Apr 27, 2020
038be7d
Added simplified version checking. Added whiptail for docker version
Apr 27, 2020
35bf6a3
Added better version messaging for python and deps
Apr 27, 2020
f75df7a
Merge pull request #39 from gpongelli/PR_add_timescaledb
Slyke Apr 27, 2020
0dc9c53
Merge remote-tracking branch 'origin/fix-python-requirements.txt' int…
Apr 28, 2020
0a490e7
Merge branch 'check_docker_b4_version' into experimental
Apr 28, 2020
eccff23
Merge remote-tracking branch 'origin/migration-readme' into experimental
Apr 28, 2020
53d715e
Updated readme with instructions on how to select experimental features
Apr 28, 2020
bcb42c3
Fixed merge conflict issue
Apr 28, 2020
0b30604
Added some more nodered modules. Removed override file. Added branch …
Apr 28, 2020
c6390f3
Merge branch 'master' into patch-1
DIYtechie May 3, 2020
18bdefe
port changes and devices commented
DIYtechie May 3, 2020
f3be535
devices commented out
DIYtechie May 3, 2020
07837f7
Merge pull request #24 from DIYtechie/patch-1
Slyke May 3, 2020
1a0c310
Create deconz.md
DIYtechie May 5, 2020
fc30dee
Update deconz.md
DIYtechie May 6, 2020
c3f39e8
Update deconz.md
DIYtechie May 6, 2020
609c6c9
:pencil2: fixing typo
lepirlouit May 7, 2020
ab1d590
Merge pull request #43 from DIYtechie/patch-2
Slyke May 7, 2020
153543e
Merge pull request #45 from lepirlouit/patch-1
Slyke May 7, 2020
8cbdba6
Update deconz.md
DIYtechie May 9, 2020
c584129
make empty
DIYtechie May 9, 2020
b80b21e
create deCONZ device config
DIYtechie May 9, 2020
9fc4d67
Create service_conbee.yml
DIYtechie May 9, 2020
c2d231c
Create service_conbee_II.yml
DIYtechie May 9, 2020
d09497e
Create service_raspbee.yml
DIYtechie May 9, 2020
a483b43
fixing typos and simplifying with gif
DIYtechie May 9, 2020
9fadb35
Add Dozzle container.
robertcsakany May 10, 2020
e102a7e
Fixing tablulator
robertcsakany May 10, 2020
bbb5766
Merge pull request #48 from DIYtechie/deconz
Slyke May 10, 2020
ae04776
Expansion of Grafana documentation page.
Paraphraser May 16, 2020
d3d676b
Merge pull request #53 from Paraphraser/20200515-doco-grafana
Slyke May 16, 2020
45af02c
Merge pull request #49 from robertcsakany/feature/AddDozzleContainer
Slyke May 16, 2020
0b71c43
Removes pin of Grafana to version 6.3.6.
Paraphraser May 18, 2020
993e358
Merge pull request #54 from Paraphraser/20200518-template-grafana
Slyke May 18, 2020
64f755f
Added troubleshooting text and other amendments
DIYtechie May 21, 2020
d39ae55
Update deconz.md
DIYtechie May 21, 2020
f4ad7b9
Update deconz.md
DIYtechie May 21, 2020
ebe29db
Update deconz.md
DIYtechie May 21, 2020
1cc95db
Clean up
DIYtechie May 21, 2020
576c88f
Merge pull request #57 from DIYtechie/deconz
Slyke May 21, 2020
78d90b6
Merge pull request #40 from SensorsIot/experimental
Slyke May 29, 2020
01eb79a
Fixed bug where yaml merging was overwriting deconz services
May 29, 2020
1b6ea53
Merge pull request #62 from SensorsIot/deconz-fix
Slyke May 31, 2020
4324578
Merge branch 'master' into Portainer-agent
Willem-Dekker Jun 15, 2020
2955f36
Merge remote-tracking branch 'SensorsIot/master' into Portainer-agent
Willem-Dekker Jun 15, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish docs via GitHub Pages
on:
push:
branches:
- master

jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v1

- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
/services/
/volumes/
/backups/
/.tmp/*
docker-compose.yml
.outofdate
.outofdate

!.gitkeep
44 changes: 44 additions & 0 deletions .templates/deconz/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/bin/bash

#deCONZ device configuration

DOCKER_COMPOSE_PATH=./.tmp/docker-compose.tmp.yml

if [[ ! -f $DOCKER_COMPOSE_PATH ]]; then
echo "[deCONZ] Warning: $DOCKER_COMPOSE_PATH does not exist."
fi

device_selection=$(whiptail --radiolist --title "Select deCONZ gateway" --notags \
"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 \
"ConBeeII" "ConBee II " "ON" \
"ConBee" "ConBee " "OFF" \
"RaspBee" "RaspBee " "OFF" \
3>&1 1>&2 2>&3)

case $device_selection in

"ConBeeII")
if [[ ! -f ./.templates/deconz/service_conbee_II.yml ]]; then
echo "Error: ./.templates/deconz/service_conbee_II.yml does not exist."
else
cat ./.templates/deconz/service_conbee_II.yml >> $DOCKER_COMPOSE_PATH
echo "...copied ConBee II config from template"
fi
;;
"ConBee")
if [[ ! -f ./.templates/deconz/service_conbee.yml ]]; then
echo "Error: ./.templates/deconz/service_conbee.yml does not exist."
else
cat ./.templates/deconz/service_conbee.yml >> $DOCKER_COMPOSE_PATH
echo "...copied ConBee config from template"
fi
;;
"RaspBee")
if [[ ! -f ./.templates/deconz/service_raspbee.yml ]]; then
echo "Error: ./.templates/deconz/service_raspbee.yml does not exist."
else
cat ./.templates/deconz/service_raspbee.yml >> $DOCKER_COMPOSE_PATH
echo "...copied RaspBee config from template"
fi
;;
esac
1 change: 1 addition & 0 deletions .templates/deconz/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

21 changes: 21 additions & 0 deletions .templates/deconz/service_conbee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
deconz:
image: marthoc/deconz
container_name: deconz
restart: unless-stopped
ports:
- '8090:80'
- '443:443'
- '5901:5900'
volumes:
- ./volumes/deconz/:/root/.local/share/dresden-elektronik/deCONZ
devices:
#ConBee:
- /dev/ttyUSB0
environment:
- DECONZ_VNC_MODE=1
- DECONZ_VNC_PASSWORD=changeme
- DEBUG_INFO=1
- DEBUG_APS=0
- DEBUG_ZCL=0
- DEBUG_ZDP=0
- DEBUG_OTAU=0
21 changes: 21 additions & 0 deletions .templates/deconz/service_conbee_II.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
deconz:
image: marthoc/deconz
container_name: deconz
restart: unless-stopped
ports:
- '8090:80'
- '443:443'
- '5901:5900'
volumes:
- ./volumes/deconz/:/root/.local/share/dresden-elektronik/deCONZ
devices:
#ConBee II:
- /dev/ttyACM0
environment:
- DECONZ_VNC_MODE=1
- DECONZ_VNC_PASSWORD=changeme
- DEBUG_INFO=1
- DEBUG_APS=0
- DEBUG_ZCL=0
- DEBUG_ZDP=0
- DEBUG_OTAU=0
22 changes: 22 additions & 0 deletions .templates/deconz/service_raspbee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
deconz:
image: marthoc/deconz
container_name: deconz
restart: unless-stopped
ports:
- '8090:80'
- '443:443'
- '5901:5900'
volumes:
- ./volumes/deconz/:/root/.local/share/dresden-elektronik/deCONZ
devices:
#RaspBee:
- /dev/ttyAMA0
#alternatively - /dev/ttyS0
environment:
- DECONZ_VNC_MODE=1
- DECONZ_VNC_PASSWORD=changeme
- DEBUG_INFO=1
- DEBUG_APS=0
- DEBUG_ZCL=0
- DEBUG_ZDP=0
- DEBUG_OTAU=0
9 changes: 9 additions & 0 deletions .templates/dozzle/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dozzle:
container_name: dozzle
image: amir20/dozzle:latest
restart: unless-stopped
network_mode: host
ports:
- 8888:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock
1 change: 1 addition & 0 deletions .templates/gitea/gitea.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# initially empty
14 changes: 14 additions & 0 deletions .templates/gitea/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
gitea:
container_name: gitea
image: kapdap/gitea-rpi
restart: unless-stopped
user: "0"
ports:
- "7920:3000/tcp"
- "2222:22/tcp"
env_file:
- ./services/gitea/gitea.env
volumes:
- ./volumes/gitea/data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
2 changes: 1 addition & 1 deletion .templates/grafana/service.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
grafana:
container_name: grafana
image: grafana/grafana:6.3.6
image: grafana/grafana
restart: unless-stopped
user: "0"
ports:
Expand Down
6 changes: 6 additions & 0 deletions .templates/mosquitto/filter.acl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
user admin
topic read #
topic write #

pattern read #
pattern write #
10 changes: 9 additions & 1 deletion .templates/mosquitto/mosquitto.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
#log_dest file /mosquitto/log/mosquitto.log
# To avoid flash wearing
log_dest stdout

#Uncomment to enable passwords
#password_file /mosquitto/config/pwfile
#allow_anonymous false

#Uncomment to enable filters
#acl_file /mosquitto/config/filter.acl
1 change: 1 addition & 0 deletions .templates/mosquitto/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
- ./volumes/mosquitto/data:/mosquitto/data
- ./volumes/mosquitto/log:/mosquitto/log
- ./services/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./services/mosquitto/filter.acl:/mosquitto/config/filter.acl

9 changes: 7 additions & 2 deletions .templates/nodered/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ node_selection=$(whiptail --title "Node-RED nodes" --checklist --separate-output
"Use the [SPACEBAR] to select the nodes you want preinstalled" 20 78 12 -- \
"node-red-node-pi-gpiod" " " "ON" \
"node-red-dashboard" " " "ON" \
"node-red-contrib-influxdb" " " "ON" \
"node-red-contrib-boolean-logic" " " "ON" \
"node-red-node-rbe" " " "ON" \
"node-red-configurable-ping" " " "ON" \
"node-red-node-openweathermap" " " "OFF" \
"node-red-contrib-discord" " " "OFF" \
"node-red-node-email" " " "on" \
"node-red-node-google" " " "OFF" \
"node-red-node-emoncms" " " "OFF" \
"node-red-node-geofence" " " "OFF" \
Expand All @@ -15,7 +21,6 @@ node_selection=$(whiptail --title "Node-RED nodes" --checklist --separate-output
"node-red-node-smooth" " " "OFF" \
"node-red-node-darksky" " " "OFF" \
"node-red-node-sqlite" " " "OFF" \
"node-red-contrib-influxdb" " " "ON" \
"node-red-contrib-config" " " "OFF" \
"node-red-contrib-grove" " " "OFF" \
"node-red-contrib-diode" " " "OFF" \
Expand All @@ -29,12 +34,12 @@ node_selection=$(whiptail --title "Node-RED nodes" --checklist --separate-output
"node-red-contrib-isonline" " " "OFF" \
"node-red-contrib-npm" " " "OFF" \
"node-red-contrib-file-function" " " "OFF" \
"node-red-contrib-boolean-logic" " " "OFF" \
"node-red-contrib-home-assistant-websocket" " " "OFF" \
"node-red-contrib-blynk-ws" " " "OFF" \
"node-red-contrib-owntracks" " " "OFF" \
"node-red-contrib-alexa-local" " " "OFF" \
"node-red-contrib-heater-controller" " " "OFF" \
"node-red-contrib-deconz" " " "OFF" \
3>&1 1>&2 2>&3)

##echo "$check_selection"
Expand Down
4 changes: 2 additions & 2 deletions .templates/pihole/pihole.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ WEBPASSWORD=pihole
#DNSSEC=false
#DNS_BOGUS_PRIV=True
#CONDITIONAL_FORWARDING=False
#CONDITIONAL_FORWARDING_IP=your_router_ip_here (only if CONDITIONAL_FORWARDING=ture)
#CONDITIONAL_FORWARDING_IP=your_router_ip_here (only if CONDITIONAL_FORWARDING=true)
#CONDITIONAL_FORWARDING_DOMAIN=optional
#CONDITIONAL_FORWARDING_REVERSE=optional
#ServerIP=your_Pi's_IP_here << recommended
#ServerIPv6= your_Pi's_ipv6_here << Required if using ipv6
#VIRTUAL_HOST=$ServerIP
#IPv6=True
INTERFACE=eth0
#DNSMASQ_LISTENING=local
#DNSMASQ_LISTENING=local
9 changes: 9 additions & 0 deletions .templates/portainer_agent/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
portainer_agent:
image: portainer/agent
container_name: portainer-agent
ports:
- 9002:9001
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
restart: always
Empty file.
5 changes: 4 additions & 1 deletion .templates/python/directoryfix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

# Directoryfix for python

#current user
u=$(whoami)

if [ ! -d ./volumes/python/app ]; then
sudo mkdir -p ./volumes/python/app
sudo chown -R pi:pi ./volumes/python
sudo chown -R $u:$u ./volumes/python
echo 'print("hello world")' >./volumes/python/app/app.py

fi
Empty file.
10 changes: 10 additions & 0 deletions .templates/timescaledb/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
timescaledb:
container_name: timescaledb
image: timescale/timescaledb:latest-pg12
restart: unless-stopped
env_file:
- ./services/timescaledb/timescaledb.env
ports:
- 5432:5432
volumes:
- ./volumes/timescaledb/data:/var/lib/postgresql/data
3 changes: 3 additions & 0 deletions .templates/timescaledb/timescaledb.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
POSTGRES_USER=postuser
POSTGRES_PASSWORD=postpassword
POSTGRES_DB=postdb
7 changes: 7 additions & 0 deletions .templates/transmission/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# create directories for named volumes
TRANSMISSION_BASEDIR=.volumes/transmission
mkdir -p $TRANSMISSION_BASEDIR/downloads
mkdir -p $TRANSMISSION_BASEDIR/watch
mkdir -p $TRANSMISSION_BASEDIR/config
16 changes: 16 additions & 0 deletions .templates/transmission/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
transmission:
image: linuxserver/transmission
container_name: transmission
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Rome
volumes:
- transm_config_volume:/config
- transm_download_volume:/downloads
- transm_watch_volume:/watch
ports:
- 9091:9091
- 51413:51413
- 51413:51413/udp
restart: unless-stopped
21 changes: 21 additions & 0 deletions .templates/transmission/volumes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

transm_download_volume:
driver: local
driver_opts:
o: bind
type: none
device: .volumes/transmission/downloads

transm_watch_volume:
driver: local
driver_opts:
o: bind
type: none
device: .volumes/transmission/watch

transm_config_volume:
driver: local
driver_opts:
o: bind
type: none
device: .volumes/transmission/config
Empty file added .tmp/.gitkeep
Empty file.
Loading