Skip to content

Commit

Permalink
fixing restarts for nginx and removed home assistant. Also added spoo…
Browse files Browse the repository at this point in the history
…lman to pihome
  • Loading branch information
ScottGibb committed Sep 3, 2024
1 parent 2981716 commit 2bfd386
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 31 deletions.
2 changes: 1 addition & 1 deletion HPNas/Networking/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ services:
environment:
- NGINX_HOST=192.168.0.67
- NGINX_PORT=80
restart: always
restart: unless-stopped
1 change: 1 addition & 0 deletions PiDesk/Networking/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ services:
environment:
- NGINX_HOST=192.168.0.93
- NGINX_PORT=80
restart: unless-stopped
35 changes: 25 additions & 10 deletions PiHome/IOT/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,19 @@ services:
- mosquitto_data:/mosquitto/data
- mosquitto_config:/mosquitto/config
- mosquitto_log:/mosquitto/log

homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /home/pi/config/homeassistant:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
restart: unless-stopped
privileged: true
network_mode: host

# Commented out due to resource constraints and it not being the correct setup

Check warning on line 18 in PiHome/IOT/docker-compose.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

18:1 [comments-indentation] comment not indented like content
# homeassistant:
# container_name: homeassistant
# image: "ghcr.io/home-assistant/home-assistant:stable"
# volumes:
# - /home/pi/config/homeassistant:/config
# - /etc/localtime:/etc/localtime:ro
# - /run/dbus:/run/dbus:ro
# restart: unless-stopped
# privileged: true
# network_mode: host

node-red:
container_name: Node-Red
Expand Down Expand Up @@ -85,6 +87,19 @@ services:
privileged: true # Required for GPIO Access

Check warning on line 87 in PiHome/IOT/docker-compose.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

87:22 [comments] too few spaces before comment
restart: unless-stopped

spoolman:
container_name: spoolman
image: ghcr.io/donkie/spoolman:latest
restart: unless-stopped
volumes:
# Mount the host machine's ./data directory into the container's /home/app/.local/share/spoolman directory
- type: bind
source: /home/pi/docker-mounts/spoolman # This is where the data will be stored locally. Could also be set to for example `source: /home/pi/printer_data/spoolman`.

Check warning on line 97 in PiHome/IOT/docker-compose.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

97:49 [comments] too few spaces before comment

Check warning on line 97 in PiHome/IOT/docker-compose.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

97:121 [line-length] line too long (171 > 120 characters)
target: /home/app/.local/share/spoolman # Do NOT modify this line

Check warning on line 98 in PiHome/IOT/docker-compose.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

98:49 [comments] too few spaces before comment
ports:
# Map the host machine's port 7912 to the container's port 8000
- "7912:8000"

Check failure on line 102 in PiHome/IOT/docker-compose.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

102:1 [trailing-spaces] trailing spaces
volumes:
mosquitto_data:
mosquitto_config:
Expand Down
1 change: 0 additions & 1 deletion PiHome/Misc/.env

This file was deleted.

16 changes: 0 additions & 16 deletions PiHome/Misc/docker-compose.yml

This file was deleted.

5 changes: 3 additions & 2 deletions PiHome/Networking/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
- "1080:80/tcp"
environment:
TZ: 'Europe/London'
WEBPASSWORD: 'set a secure password here or it will be random'
WEBPASSWORD: 'Admin'
# Volumes store your data between container upgrades
volumes:
- type: bind
Expand All @@ -42,5 +42,6 @@ services:
ports:
- "80:80"
environment:
- NGINX_HOST=192.168.0.43
- NGINX_HOST=192.168.0.68
- NGINX_PORT=80
restart: unless-stopped
2 changes: 1 addition & 1 deletion PiHome/docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ directories=(
"./Security/"
"./Networking/"
"./IOT/"
"./Finances/"
# "./Finances/"

)

Expand Down
1 change: 1 addition & 0 deletions PiLab/Networking/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ services:
environment:
- NGINX_HOST=192.168.0.69
- NGINX_PORT=80
restart: unless-stopped
1 change: 1 addition & 0 deletions PiWeb/Networking/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ services:
environment:
- NGINX_HOST=192.168.0.70
- NGINX_PORT=80
restart: unless-stopped
2 changes: 2 additions & 0 deletions PrusaPrint/Networking/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ services:
environment:
- NGINX_HOST=192.168.0.43
- NGINX_PORT=80
restart: unless-stopped

Check failure on line 20 in PrusaPrint/Networking/docker-compose.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

20:1 [empty-lines] too many blank lines (1 > 0)

0 comments on commit 2bfd386

Please sign in to comment.