1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-13 09:46:23 +00:00

Add cron to kanboard

This commit is contained in:
David Young
2017-12-22 13:47:11 +13:00
parent 088d891569
commit 8597bcc631
2 changed files with 28 additions and 1 deletions

View File

@@ -23,6 +23,8 @@ Features include:
1. [Docker swarm cluster](/ha-docker-swarm/design/) with [persistent shared storage](/ha-docker-swarm/shared-storage-ceph.md)
2. [Traefik](/ha-docker-swarm/traefik) configured per design
3. DNS entry pointing your NextCloud url (_kanboard.example.com_) to your [keepalived](ha-docker-swarm/keepalived/) IP
## Preparation
@@ -60,9 +62,34 @@ services:
- traefik.docker.network=traefik
- traefik.port=80
cron:
image: kanboard/kanboard
volumes:
- /var/data/kanboard/data:/var/www/app/data
user: nginx
networks:
- internal
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
while [ ! -f /var/www/html/config/config.php ]; do
sleep 1
done
while true; do
cd /var/www/app
./cli cron
sleep 8h
done
EOF'
networks:
traefik:
external: true
internal:
driver: overlay
ipam:
config:
- subnet: 172.16.8.0/24
```

View File

@@ -51,7 +51,7 @@ MYSQL_USER=nextcloud
MYSQL_PASSWORD=set to something secure>
```
Now create a **separate** nextcloud-db-backup.env file, to capture the environment variables necessary to perform the backup. (_If the same variables are shared with the mariadb container, they [cause]https://discourse.geek-kitchen.funkypenguin.co.nz/t/nextcloud-funky-penguins-geek-cookbook/254/3?u=funkypenguin) issues with database access_)
Now create a **separate** nextcloud-db-backup.env file, to capture the environment variables necessary to perform the backup. (_If the same variables are shared with the mariadb container, they [cause issues](https://discourse.geek-kitchen.funkypenguin.co.nz/t/nextcloud-funky-penguins-geek-cookbook/254/3?u=funkypenguin) with database access_)
````
# For database backup (keep 7 days daily backups)