File tree Expand file tree Collapse file tree 2 files changed +30
-11
lines changed Expand file tree Collapse file tree 2 files changed +30
-11
lines changed Original file line number Diff line number Diff line change 1+ influxdb2 :
2+ container_name : influxdb2
3+ image : " influxdb:latest"
4+ restart : unless-stopped
5+ environment :
6+ - TZ=Etc/UTC
7+ - DOCKER_INFLUXDB_INIT_USERNAME=me
8+ - DOCKER_INFLUXDB_INIT_PASSWORD=mypassword
9+ - DOCKER_INFLUXDB_INIT_ORG=myorg
10+ - DOCKER_INFLUXDB_INIT_BUCKET=mybucket
11+ - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=my-super-secret-auth-token
12+ - DOCKER_INFLUXDB_INIT_MODE=setup
13+ # - DOCKER_INFLUXDB_INIT_MODE=upgrade
14+ ports :
15+ - " 8087:8086"
16+ volumes :
17+ - ./volumes/influxdb2/data:/var/lib/influxdb2
18+ - ./volumes/influxdb2/config:/etc/influxdb2
19+ - ./volumes/influxdb2/backup:/var/lib/backup
20+ # - ./volumes/influxdb.migrate/data:/var/lib/influxdb:ro
21+ healthcheck :
22+ test : ["CMD", "influx", "ping"]
23+ interval : 30s
24+ timeout : 10s
25+ retries : 3
26+ start_period : 30s
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ declare -A cont_array=(
2424 [portainer_agent]=" Portainer agent"
2525 [nodered]=" Node-RED"
2626 [influxdb]=" InfluxDB"
27+ [influxdb2]=" InfluxDB 2 (requires full 64-bit OS)"
2728 [telegraf]=" Telegraf (Requires InfluxDB and Mosquitto)"
2829 [chronograf]=" Chronograf (Requires InfluxDB, Kapacitor optional)"
2930 [kapacitor]=" Kapacitor (Requires InfluxDB)"
@@ -65,11 +66,12 @@ declare -A cont_array=(
6566 # add yours here
6667)
6768
68- declare -a armhf_keys =(
69+ declare -a keylist =(
6970 " portainer-ce"
7071 " portainer_agent"
7172 " nodered"
7273 " influxdb"
74+ " influxdb2"
7375 " grafana"
7476 " mosquitto"
7577 " telegraf"
@@ -109,7 +111,6 @@ declare -a armhf_keys=(
109111 " home_assistant"
110112 # add yours here
111113)
112- sys_arch=$( uname -m)
113114
114115# timezones
115116timezones () {
@@ -455,22 +456,14 @@ case $mainmenu_selection in
455456 message=$' Use the [SPACEBAR] to select which containers you would like to install'
456457 entry_options=()
457458
458- # check architecture and display appropriate menu
459- if [ $( echo " $sys_arch " | grep -c " arm" ) ]; then
460- keylist=(" ${armhf_keys[@]} " )
461- else
462- echo " your architecture is not supported yet"
463- exit
464- fi
465-
466459 # loop through the array of descriptions
467460 for index in " ${keylist[@]} " ; do
468461 entry_options+=(" $index " )
469462 entry_options+=(" ${cont_array[$index]} " )
470463
471464 # check selection
472465 if [ -f ./services/selection.txt ]; then
473- [ $( grep " $index " ./services/selection.txt) ] && entry_options+=(" ON" ) || entry_options+=(" OFF" )
466+ [ $( grep " ^ $index \$ " ./services/selection.txt) ] && entry_options+=(" ON" ) || entry_options+=(" OFF" )
474467 else
475468 entry_options+=(" OFF" )
476469 fi
You can’t perform that action at this time.
0 commit comments