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
|
*/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:
|
||||||
- ${VOLUMES_PATH}/nextcloud_html:/var/www/html
|
- ${VOLUMES_PATH}/nextcloud_html:/var/www/html
|
||||||
- ${VOLUMES_PATH}/nextcloud_data:/var/www/html/data
|
- ${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
|
entrypoint: /cron.sh
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
@ -115,11 +120,12 @@ services:
|
||||||
|
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: redis-server --requirepass ${REDIS_HOST_PASSWORD}
|
command: redis-server --requirepass ${REDIS_HOST_PASSWORD}
|
||||||
networks:
|
networks:
|
||||||
- nextcloud
|
- nextcloud
|
||||||
|
- monitoring
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOLUMES_PATH}/nextcloud_redis:/data
|
- ${VOLUMES_PATH}/nextcloud_redis:/data
|
||||||
labels:
|
labels:
|
||||||
|
@ -177,6 +183,12 @@ services:
|
||||||
- LETS_ENCRYPT_ENABLED=false
|
- LETS_ENCRYPT_ENABLED=false
|
||||||
- EXPORT_URL=http://drawio-export:8000/
|
- EXPORT_URL=http://drawio-export:8000/
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
test: curl -f http://localhost:8080 || exit 1
|
||||||
|
interval: 1m30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
|
start_period: 20s
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.drawio.rule=Host(`drawio.${DOMAIN}`)"
|
- "traefik.http.routers.drawio.rule=Host(`drawio.${DOMAIN}`)"
|
||||||
|
@ -191,3 +203,5 @@ networks:
|
||||||
external: true
|
external: true
|
||||||
nextcloud:
|
nextcloud:
|
||||||
mariadb:
|
mariadb:
|
||||||
|
monitoring:
|
||||||
|
external: true
|
||||||
|
|
Loading…
Reference in a new issue