File tree Expand file tree Collapse file tree 27 files changed +118
-77
lines changed Expand file tree Collapse file tree 27 files changed +118
-77
lines changed Original file line number Diff line number Diff line change 1
- alias iotstack_up=" docker-compose -f ~/IOTstack/docker-compose.yml up -d"
2
- alias iotstack_down=" docker-compose -f ~/IOTstack/docker-compose.yml down"
3
- alias iotstack_start=" docker-compose -f ~/IOTstack/docker-compose.yml start"
4
- alias iotstack_stop=" docker-compose -f ~/IOTstack/docker-compose.yml stop"
5
- alias iotstack_update=" docker-compose -f ~/IOTstack/docker-compose.yml pull"
6
- alias iotstack_build=" docker-compose -f ~/IOTstack/docker-compose.yml build"
7
-
1
+ COMPOSE_FILE=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) /docker-compose.yml"
2
+ alias iotstack_up=" docker-compose -f " $COMPOSE_FILE " up -d --build --remove-orphans"
3
+ alias iotstack_down=" docker-compose -f " $COMPOSE_FILE " down"
4
+ alias iotstack_start=" docker-compose -f " $COMPOSE_FILE " start"
5
+ alias iotstack_stop=" docker-compose -f " $COMPOSE_FILE " stop"
6
+ alias iotstack_pull=" docker-compose -f " $COMPOSE_FILE " pull"
7
+ alias iotstack_build=" docker-compose -f " $COMPOSE_FILE " build --pull --no-cache"
8
+ alias iotstack_update=" iotstack_pull && iotstack_build && iotstack up"
Original file line number Diff line number Diff line change 5
5
/.tmp /*
6
6
__pycache__
7
7
docker-compose.yml
8
+ docker-compose.override.yml
8
9
compose-override.yml
10
+ .env
9
11
postbuild.sh
10
12
pre_backup.sh
11
13
post_backup.sh
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ blynk_server:
7
7
restart : unless-stopped
8
8
environment :
9
9
- TZ=Etc/UTC
10
- - IOTSTACK_UID=1000
11
- - IOTSTACK_GID=1000
10
+ - IOTSTACK_UID=${IOTSTACK_UID:?IOTSTACK_UID must be defined in ~/IOTstack/.env}
11
+ - IOTSTACK_GID=${IOTSTACK_GID:?IOTSTACK_GID must be defined in ~/IOTstack/.env}
12
12
ports :
13
13
- " 8180:8080"
14
14
- " 8440:8440"
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ domoticz:
10
10
restart : unless-stopped
11
11
network_mode : bridge
12
12
environment :
13
- - PUID=1000
14
- - PGID=1000
13
+ - PUID=${IOTSTACK_UID:?IOTSTACK_UID must be defined in ~/IOTstack/.env}
14
+ - PGID=${IOTSTACK_GID:?IOTSTACK_GID must be defined in ~/IOTstack/.env}
15
15
# - TZ=
16
16
# - WEBROOT=domoticz
17
17
Original file line number Diff line number Diff line change 6
6
- " 7920:3000/tcp"
7
7
- " 2222:22/tcp"
8
8
environment :
9
- - USER_UID=1000
10
- - USER_GID=1000
9
+ - USER_UID=${IOTSTACK_UID:?IOTSTACK_UID must be defined in ~/IOTstack/.env}
10
+ - USER_GID=${IOTSTACK_GID:?IOTSTACK_GID must be defined in ~/IOTstack/.env}
11
11
volumes :
12
12
- ./volumes/gitea/data:/data
13
13
- /etc/timezone:/etc/timezone:ro
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ heimdall:
2
2
image : ghcr.io/linuxserver/heimdall
3
3
container_name : heimdall
4
4
environment :
5
- - PUID=1000
6
- - PGID=1000
5
+ - PUID=${IOTSTACK_UID:?IOTSTACK_UID must be defined in ~/IOTstack/.env}
6
+ - PGID=${IOTSTACK_GID:?IOTSTACK_GID must be defined in ~/IOTstack/.env}
7
7
- TZ=Europe/Paris
8
8
volumes :
9
9
- ./volumes/heimdall/config:/config
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ homebridge:
4
4
restart : unless-stopped
5
5
environment :
6
6
- TZ=Etc/UTC
7
- - PGID=1000
8
- - PUID=1000
7
+ - PGID=${IOTSTACK_GID:?IOTSTACK_GID must be defined in ~/IOTstack/.env}
8
+ - PUID=${IOTSTACK_UID:?IOTSTACK_UID must be defined in ~/IOTstack/.env}
9
9
- HOMEBRIDGE_CONFIG_UI=1
10
10
- HOMEBRIDGE_CONFIG_UI_PORT=8581
11
11
volumes :
Original file line number Diff line number Diff line change 2
2
image : b4bz/homer:latest
3
3
container_name : homer
4
4
environment :
5
- - UID=1000
6
- - GID=1000
5
+ - UID=${IOTSTACK_UID:?IOTSTACK_UID must be defined in ~/IOTstack/.env}
6
+ - GID=${IOTSTACK_GID:?IOTSTACK_GID must be defined in ~/IOTstack/.env}
7
7
volumes :
8
8
- ./volumes/homer/assets:/www/assets
9
9
ports :
Original file line number Diff line number Diff line change 3
3
container_name : mariadb
4
4
environment :
5
5
- TZ=Etc/UTC
6
- - PUID=1000
7
- - PGID=1000
6
+ - PUID=${IOTSTACK_UID:?IOTSTACK_UID must be defined in ~/IOTstack/.env}
7
+ - PGID=${IOTSTACK_GID:?IOTSTACK_GID must be defined in ~/IOTstack/.env}
8
8
- MYSQL_ROOT_PASSWORD=%randomAdminPassword%
9
9
- MYSQL_DATABASE=default
10
10
- MYSQL_USER=mariadbuser
Original file line number Diff line number Diff line change 21
21
# - N8N_BASIC_AUTH_ACTIVE=true
22
22
# - N8N_BASIC_AUTH_USER=<USER>
23
23
# - N8N_BASIC_AUTH_PASSWORD=<PASSWORD>
24
-
25
- # - PGID=1000
26
- # - PUID=1000
27
- # - USBDEVICES=/dev/ttyAMA0
28
- # - PACKAGES=mc
24
+ #
25
+ # - PGID=${IOTSTACK_GID:?IOTSTACK_GID must be defined in ~/IOTstack/.env}
26
+ # - PUID=${IOTSTACK_UID:?IOTSTACK_UID must be defined in ~/IOTstack/.env}
27
+ # - USBDEVICES=/dev/ttyAMA0
28
+ # - PACKAGES=mc
29
29
You can’t perform that action at this time.
0 commit comments