Docker compose hinzugefügt und cronjob auf 2 Termine erweitert
This commit is contained in:
parent
f9f28dc55d
commit
da357aa7de
6
cfg/check_next_2_days.json
Normal file
6
cfg/check_next_2_days.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"header": "Es gibt noch offene Thekendienste für die nächsten 2 Tage\\!\nWer kann bitte im [Kalender](https://teamup.com/ksp4hsa93c1nt5kmym) eintragen und im 'HOBBYHIMMEL Thekenhelden' chat melden\\.\n\n",
|
||||
"start_date": null,
|
||||
"end_date": null,
|
||||
"days_to_check": 2
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
# Runs every sunday at 16:00
|
||||
0 16 * * 0 /usr/local/bin/python3 /app/reportMissingThekendienst.py /app/base_config.json /app/check_next_7_days.json > /app/thekendienstbot_week.txt
|
||||
0 21 * * 0 /usr/local/bin/python3 /app/reportMissingThekendienst.py /app/cfg/base_config.json /app/cfg/check_next_7_days.json > /app/log/thekendienstbot_week.txt
|
||||
|
||||
15 11 * * * /usr/local/bin/python3 /app/reportMissingThekendienst.py /app/cfg/base_config.json /app/cfg/check_next_2_days.json > /app/log/thekendienstbot_2days.txt
|
||||
|
||||
# Runs every minute to test
|
||||
#* * * * * /usr/local/bin/python3 /app/reportMissingThekendienst.py /app/base_config.json /app/check_next_7_days.json > /app/thekendienstbot_min.txt
|
||||
|
|
|
|||
11
docker/docker-compose.yaml
Normal file
11
docker/docker-compose.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
services:
|
||||
thekendienstbot:
|
||||
image: thekendienstbot:latest
|
||||
container_name: thekendienstbot
|
||||
environment:
|
||||
- TZ=Europe/Berlin
|
||||
volumes:
|
||||
- /home/hobbyadmin/ThekendienstBot/cfg/:/app/cfg/
|
||||
- /home/hobbyadmin/ThekendienstBot/src/reportMissingThekendienst.py:/app/reportMissingThekendienst.py
|
||||
- /home/hobbyadmin/ThekendienstBot/docker/crontab:/etc/cron.d/crontab
|
||||
|
||||
Loading…
Reference in New Issue
Block a user