From e891801125328f10e5c045503b9d2b2b3ad7f8d9 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Mon, 30 Sep 2024 17:44:45 +0200 Subject: [PATCH] chore: add Time Zone --- README.md | 1 + docker/Dockerfile | 3 ++- docs/index.md | 1 + docs/reference/index.md | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 79fb884..35d9659 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ services: - DB_NAME=foo - DB_USERNAME=bar - DB_PASSWORD=password + - TZ=Europe/Paris # mysql-bkup container must be connected to the same network with your database networks: - web diff --git a/docker/Dockerfile b/docker/Dockerfile index 62e5395..65442b3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -43,12 +43,13 @@ ENV VERSION="v1.2.9" ENV BACKUP_CRON_EXPRESSION="" ENV TG_TOKEN="" ENV TG_CHAT_ID="" +ENV TZ=UTC ARG WORKDIR="/config" ARG BACKUPDIR="/backup" ARG BACKUP_TMP_DIR="/tmp/backup" LABEL author="Jonas Kaninda" -RUN apk add --no-cache mysql-client mariadb-connector-c gnupg +RUN apk --update add --no-cache mysql-client mariadb-connector-c gnupg tzdata RUN mkdir $WORKDIR RUN mkdir $BACKUPDIR RUN mkdir -p $BACKUP_TMP_DIR diff --git a/docs/index.md b/docs/index.md index 1fff183..527c10a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -73,6 +73,7 @@ services: - DB_NAME=foo - DB_USERNAME=bar - DB_PASSWORD=password + - TZ=Europe/Paris # mysql-bkup container must be connected to the same network with your database networks: - web diff --git a/docs/reference/index.md b/docs/reference/index.md index 2640902..50597ee 100644 --- a/docs/reference/index.md +++ b/docs/reference/index.md @@ -67,6 +67,7 @@ Backup, restore and migrate targets, schedule and retention are configured using | TARGET_DB_PASSWORD | Optional, required for database migration | Target database password | | TG_TOKEN | Optional, required for Telegram notification | Telegram token (`BOT-ID:BOT-TOKEN`) | | TG_CHAT_ID | Optional, required for Telegram notification | Telegram Chat ID | +| TZ | Optional | Time Zone | --- ## Run in Scheduled mode