Fix nextcloud crontab and redis without alpine
This commit is contained in:
parent
393b2a6053
commit
19bd12f765
2 changed files with 18 additions and 5 deletions
5
nextcloud/crontab
Normal file → Executable file
5
nextcloud/crontab
Normal file → Executable file
|
@ -1,4 +1,3 @@
|
|||
*/5 * * * * php -f /var/www/html/cron.php
|
||||
1,11,21,31,41,51 * * * * php -f /var/www/html/occ files:cleanup
|
||||
2,12,22,32,42,52 * * * * php -f /var/www/html/occ files:scan --all
|
||||
#3,13,23,33,43,53 * * * * php -f /var/www/html/occ preview:pre-generate
|
||||
|
||||
|
||||
|
|
|
@ -57,7 +57,12 @@ services:
|
|||
volumes:
|
||||
- ${VOLUMES_PATH}/nextcloud_html:/var/www/html
|
||||
- ${VOLUMES_PATH}/nextcloud_data:/var/www/html/data
|
||||
- $PWD/crontab:/var/spool/cron/crontabs/www-data:ro
|
||||
# If I mount my crontab into the container crond is not working any more :(
|
||||
# docker log should print 11110001 lines
|
||||
# https://github.com/nextcloud/docker/issues/1775
|
||||
# https://github.com/nextcloud/docker/issues/1695
|
||||
# build own cron image?
|
||||
# - $PWD/crontab:/var/spool/cron/crontabs/www-data
|
||||
entrypoint: /cron.sh
|
||||
depends_on:
|
||||
- db
|
||||
|
@ -115,11 +120,12 @@ services:
|
|||
|
||||
|
||||
redis:
|
||||
image: redis:alpine
|
||||
image: redis
|
||||
restart: unless-stopped
|
||||
command: redis-server --requirepass ${REDIS_HOST_PASSWORD}
|
||||
networks:
|
||||
- nextcloud
|
||||
- monitoring
|
||||
volumes:
|
||||
- ${VOLUMES_PATH}/nextcloud_redis:/data
|
||||
labels:
|
||||
|
@ -177,6 +183,12 @@ services:
|
|||
- LETS_ENCRYPT_ENABLED=false
|
||||
- EXPORT_URL=http://drawio-export:8000/
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: curl -f http://localhost:8080 || exit 1
|
||||
interval: 1m30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 20s
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.drawio.rule=Host(`drawio.${DOMAIN}`)"
|
||||
|
@ -191,3 +203,5 @@ networks:
|
|||
external: true
|
||||
nextcloud:
|
||||
mariadb:
|
||||
monitoring:
|
||||
external: true
|
||||
|
|
Loading…
Reference in a new issue