2 Commits
1.0 ... 1.02

Author SHA1 Message Date
Olli Graf
89c7dc9faf nextcloud Files. 2025-08-07 13:53:12 +02:00
Olli Graf
8e70b0246d homeassistant inkl. update Script. 2025-01-08 10:04:40 +01:00
5 changed files with 100 additions and 0 deletions

View 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

8
homeassistant/update-container Executable file
View File

@@ -0,0 +1,8 @@
#! /usr/bin/bash
echo "pulling image ${1}"
docker pull ${1}
echo "removing container ${2}"
docker rm -f ${2}

12
homeassistant/update.sh Executable file
View File

@@ -0,0 +1,12 @@
#! /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
./update-container ghcr.io/home-assistant/home-assistant:stable homeassistant
./update-container zwavejs/zwavejs2mqtt:latest zwavejs2mqtt
echo "creating new container"
docker-compose -f ./docker-compose.yml up -d

5
nextcloud/.env Normal file
View File

@@ -0,0 +1,5 @@
# $HOME/docker/compose-files/grafana/.env
MSQL_PASSWORD=<passwort>
MYSQL_DATABASE=nextcloud
MYSQL_USER=nextcloud
MYSQL_HOST=<hostname>

View File

@@ -0,0 +1,38 @@
version: "3.8"
services:
redis:
nextcloud:
image: nextcloud:latest
container_name: nextcloud
restart: always
ports:
- "9000:80" # Nur intern, nginx übernimmt externen Zugang
links:
- redis
environment:
- MYSQL_PASSWORD=${MYSQL_PASSWORT}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_HOST=${MYSQL_HOST}
volumes:
- /mnt/nextcloud/nextcloud/html:/var/www/html
- /mnt/nextcloud/nextcloud/apps:/var/www/html/custom_apps
- /mnt/nextcloud/nextcloud/config:/var/www/html/config
- /mnt/nextcloud/nextcloud/data:/var/www/html/data
networks:
- nextcloudnet
clamav:
image: clamav/clamav-debian
container_name: clamav
restart: unless-stopped
ports:
- "3310:3310" # TCP-Port für clamd
volumes:
- /opt/clamav:/var/lib/clamav
networks:
nextcloudnet:
driver: bridge