chore(docker): Add TZ support in Docker Image

Fixes #80
pull/92/head
Robert Dailey 3 years ago
parent fd6d51b2da
commit 1f7da24e82

@ -45,7 +45,7 @@ ENV HOME=/config \
VOLUME /config VOLUME /config
RUN set -ex; \ RUN set -ex; \
apk add --no-cache busybox-suid su-exec libstdc++; \ apk add --no-cache busybox-suid su-exec libstdc++ tzdata; \
adduser --disabled-password --home "$HOME" recyclarr; adduser --disabled-password --home "$HOME" recyclarr;
COPY --chown=recyclarr:recyclarr --chmod=544 --from=build /build/recyclarr /usr/local/bin COPY --chown=recyclarr:recyclarr --chmod=544 --from=build /build/recyclarr /usr/local/bin

@ -19,3 +19,4 @@ services:
- ./config:/config - ./config:/config
environment: environment:
CRON_SCHEDULE: "* * * * *" CRON_SCHEDULE: "* * * * *"
TZ: America/Chicago

@ -26,6 +26,8 @@ services:
networks: [recyclarr] networks: [recyclarr]
volumes: volumes:
- ./config:/config - ./config:/config
environment:
- TZ=America/Santiago
``` ```
Here is a breakdown of the above YAML: Here is a breakdown of the above YAML:
@ -80,6 +82,8 @@ value *stability* the most, you want the bottom row. If you value being on *the
- `CRON_SCHEDULE` (Default: `@daily`)<br> - `CRON_SCHEDULE` (Default: `@daily`)<br>
Standard cron syntax for how often you want Recyclarr to run (see [Cron Mode](#cron-mode)). Standard cron syntax for how often you want Recyclarr to run (see [Cron Mode](#cron-mode)).
- `TZ` (Default: UTC)
The time zone you want to use for Recyclarr's local time in the container.
## Modes ## Modes

Loading…
Cancel
Save