2 Commits
1.01 ... master

Author SHA1 Message Date
9700969bc4 nextcloud-cron 2025-08-21 15:54:23 +02:00
Olli Graf
89c7dc9faf nextcloud Files. 2025-08-07 13:53:12 +02:00
4 changed files with 67 additions and 5 deletions

View File

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

View File

@@ -1,10 +1,12 @@
#! /usr/bin/bash #! /usr/bin/bash
export COMPOSE_IGNORE_ORPHANS=True export COMPOSE_IGNORE_ORPHANS=True
echo "pulling new images" #echo "pulling new images"
docker pull ghcr.io/home-assistant/home-assistant:stable #docker pull ghcr.io/home-assistant/home-assistant:stable
docker pull zwavejs/zwavejs2mqtt:latest #docker pull zwavejs/zwavejs2mqtt:latest
echo "removing container" #echo "removing container"
docker rm -f homeassistant zwavejs2mqtt #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" echo "creating new container"
docker-compose -f ./docker-compose.yml up -d 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,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: