updated dockerfile, example compose, and corrected typo
Security / security (push) Successful in 1m4s
Security / security (push) Successful in 1m4s
This commit is contained in:
@@ -19,3 +19,5 @@ COPY --chmod=755 ["main.sh", "/data/"]
|
||||
COPY ["Start-DoneTickNotifier.ps1", "Start-DoneTickConsumer.ps1", "/data/"]
|
||||
|
||||
ENTRYPOINT ["/data/main.sh"]
|
||||
|
||||
EXPOSE 8080
|
||||
@@ -3,6 +3,8 @@ services:
|
||||
donetick-notifier:
|
||||
container_name: donetick-notifier
|
||||
image: docker.io/blinkfink182/donetick-notifier
|
||||
ports:
|
||||
- 8080:8080
|
||||
environment:
|
||||
# BELOW ARE ALL REQUIRED
|
||||
- DONETICKHOST=host.docker.internal # donetick host
|
||||
@@ -12,3 +14,4 @@ services:
|
||||
- APPRISEWEBHOOKTAG=all # apprise notification tag
|
||||
- NOTIFICATIONTIMES=8,12,17 # hours when notifications will be sent
|
||||
- TZ=America/Chicago # set timezone from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
|
||||
- JOB_SCHEDULE=0 * * * *
|
||||
@@ -2,7 +2,7 @@
|
||||
set -e
|
||||
|
||||
# Build the crontab dynamically from the env variable
|
||||
echo "${JOB_SCHEDULE} pwsh /data/Start-DoneTineNotifier.ps1" > /tmp/crontab-runtime
|
||||
echo "${JOB_SCHEDULE} pwsh /data/Start-DoneTickNotifier.ps1" > /tmp/crontab-runtime
|
||||
|
||||
echo "Cron schedule set to: ${JOB_SCHEDULE}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user