nextcloud-cron
This commit is contained in:
@@ -1,16 +1,12 @@
|
|||||||
version: "3.8"
|
version: "3.3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
redis:
|
|
||||||
|
|
||||||
nextcloud:
|
nextcloud:
|
||||||
image: nextcloud:latest
|
image: nextcloud:latest
|
||||||
container_name: nextcloud
|
container_name: nextcloud
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "9000:80" # Nur intern, nginx übernimmt externen Zugang
|
- "9000:80"
|
||||||
links:
|
|
||||||
- redis
|
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_PASSWORD=${MYSQL_PASSWORT}
|
- MYSQL_PASSWORD=${MYSQL_PASSWORT}
|
||||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||||
@@ -23,16 +19,34 @@ services:
|
|||||||
- /mnt/nextcloud/nextcloud/data:/var/www/html/data
|
- /mnt/nextcloud/nextcloud/data:/var/www/html/data
|
||||||
networks:
|
networks:
|
||||||
- nextcloudnet
|
- 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:
|
clamav:
|
||||||
image: clamav/clamav-debian
|
image: clamav/clamav-debian
|
||||||
container_name: clamav
|
container_name: clamav
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "3310:3310" # TCP-Port für clamd
|
- "3310:3310"
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/clamav:/var/lib/clamav
|
- /opt/clamav:/var/lib/clamav
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
nextcloudnet:
|
nextcloudnet:
|
||||||
driver: bridge
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user