Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
9700969bc4 | |||
![]() |
89c7dc9faf | ||
![]() |
8e70b0246d |
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
|
8
homeassistant/update-container
Executable file
8
homeassistant/update-container
Executable 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
12
homeassistant/update.sh
Executable 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
5
nextcloud/.env
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# $HOME/docker/compose-files/grafana/.env
|
||||||
|
MSQL_PASSWORD=<passwort>
|
||||||
|
MYSQL_DATABASE=nextcloud
|
||||||
|
MYSQL_USER=nextcloud
|
||||||
|
MYSQL_HOST=<hostname>
|
52
nextcloud/docker-compose.yml
Normal file
52
nextcloud/docker-compose.yml
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
version: "3.3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
nextcloud:
|
||||||
|
image: nextcloud:latest
|
||||||
|
container_name: nextcloud
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "9000:80"
|
||||||
|
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
|
||||||
|
|
||||||
|
nextcloud-cron:
|
||||||
|
image: nextcloud:latest
|
||||||
|
container_name: nextcloud-cron
|
||||||
|
restart: always
|
||||||
|
entrypoint: ["/bin/sh", "-c"]
|
||||||
|
command: >
|
||||||
|
echo "*/5 * * * * www-data pgrep -f 'cron.php' > /dev/null || php -f /var/www/html/cron.php"
|
||||||
|
> /etc/crontabs/root && crond -f -l 2
|
||||||
|
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
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
networks:
|
||||||
|
- nextcloudnet
|
||||||
|
|
||||||
|
clamav:
|
||||||
|
image: clamav/clamav-debian
|
||||||
|
container_name: clamav
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "3310:3310"
|
||||||
|
volumes:
|
||||||
|
- /opt/clamav:/var/lib/clamav
|
||||||
|
|
||||||
|
networks:
|
||||||
|
nextcloudnet:
|
||||||
|
|
Reference in New Issue
Block a user