mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-16 19:21:53 +00:00
Add cron to kanboard
This commit is contained in:
@@ -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)
|
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
|
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
|
## Preparation
|
||||||
|
|
||||||
@@ -60,9 +62,34 @@ services:
|
|||||||
- traefik.docker.network=traefik
|
- traefik.docker.network=traefik
|
||||||
- traefik.port=80
|
- 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:
|
networks:
|
||||||
traefik:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
|
internal:
|
||||||
|
driver: overlay
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: 172.16.8.0/24
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ MYSQL_USER=nextcloud
|
|||||||
MYSQL_PASSWORD=set to something secure>
|
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)
|
# For database backup (keep 7 days daily backups)
|
||||||
|
|||||||
Reference in New Issue
Block a user