From d3d22892d2c1ecd5710a880a7a2e0c21c5e46fea Mon Sep 17 00:00:00 2001 From: Kelly Thomas Reardon Date: Sun, 31 May 2026 18:29:31 -0500 Subject: [PATCH] updated dockerfile, example compose, and corrected typo --- Dockerfile | 2 ++ docker-compose.yaml | 5 ++++- main.sh | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cda5c98..87dae40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,3 +19,5 @@ COPY --chmod=755 ["main.sh", "/data/"] COPY ["Start-DoneTickNotifier.ps1", "Start-DoneTickConsumer.ps1", "/data/"] ENTRYPOINT ["/data/main.sh"] + +EXPOSE 8080 \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 702a23d..66d4cdf 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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 @@ -11,4 +13,5 @@ services: - APPRISEWEBHOOKURL=https://apprisehost/notify/config # apprise notification url - 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 \ No newline at end of file + - TZ=America/Chicago # set timezone from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List + - JOB_SCHEDULE=0 * * * * \ No newline at end of file diff --git a/main.sh b/main.sh index c0226c2..43e3a4f 100644 --- a/main.sh +++ b/main.sh @@ -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}"