You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.8 KiB
60 lines
1.8 KiB
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}
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost/status.php"]
|
|
interval: "30s" # alle 30 Sekunden prüfen
|
|
timeout: "10s" # max. 10 Sekunden auf Antwort warten
|
|
retries: "3" # nach 3 Fehlversuchen gilt der Container als unhealthy
|
|
start_period: "1m" # Wartezeit nach dem Start, bevor geprüft wird
|
|
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: /cron.sh
|
|
command:
|
|
- -c
|
|
- |
|
|
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:
|
|
|
|
|