homeassistant inkl. update Script.
This commit is contained in:
		
							
								
								
									
										37
									
								
								homeassistant/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								homeassistant/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| --- | ||||
| version: "3.2" | ||||
| services: | ||||
|   homeassistant: | ||||
|     image: ghcr.io/home-assistant/home-assistant:stable | ||||
|     container_name: homeassistant | ||||
|     environment: | ||||
|       - PUID=1000 | ||||
|       - PGID=1000 | ||||
|       - TZ=Europe/Berlin | ||||
|     volumes: | ||||
|       - /etc/localtime:/etc/localtime:ro | ||||
|       - /opt/homeassistant:/config | ||||
|     ports: | ||||
|       - 8123:8123 #optional | ||||
|     restart: unless-stopped | ||||
|   zwavejs2mqtt: | ||||
|     container_name: zwavejs2mqtt | ||||
|     image: zwavejs/zwavejs2mqtt:latest | ||||
|     restart:  unless-stopped | ||||
|     tty: true | ||||
|     stop_signal: SIGINT | ||||
|     environment: | ||||
|       - SESSION_SECRET=geheimes_secret | ||||
|       - ZWAVEJS_EXTERNAL_CONFIG=/usr/src/app/store/.config-db | ||||
|       # Uncomment if you want log times and dates to match your timezone instead of UTC | ||||
|       # Available at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones | ||||
|       #- TZ=America/New_York | ||||
|     devices: | ||||
|       # Do not use /dev/ttyUSBX serial devices, as those mappings can change over time. | ||||
|       # Instead, use the /dev/serial/by-id/X serial device for your Z-Wave stick. | ||||
|       - '/dev/serial/by-id/usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_d4e1c425a584ed11b7dad19f9d1cc348-if00-port0:/dev/zwave' | ||||
|     volumes: | ||||
|       - /opt/z-wave-js/:/usr/src/app/store | ||||
|     ports: | ||||
|       - "8091:8091" # port for web interface | ||||
|       - "3000:3000" # port for Z-Wave JS websocket server | ||||
							
								
								
									
										5
									
								
								homeassistant/update-container
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										5
									
								
								homeassistant/update-container
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| #! /usr/bin/bash | ||||
|  | ||||
| docker pull ${1} | ||||
| docker rm -f ${2} | ||||
|  | ||||
							
								
								
									
										10
									
								
								homeassistant/update.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								homeassistant/update.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| #! /usr/bin/bash | ||||
|  | ||||
| export COMPOSE_IGNORE_ORPHANS=True | ||||
| echo "pulling new images" | ||||
| docker pull ghcr.io/home-assistant/home-assistant:stable | ||||
| docker pull zwavejs/zwavejs2mqtt:latest  | ||||
| echo "removing container" | ||||
| docker rm -f  homeassistant zwavejs2mqtt | ||||
| echo "creating new container" | ||||
| docker-compose -f ./docker-compose.yml up -d | ||||
		Reference in New Issue
	
	Block a user
	 Olli Graf
					Olli Graf