Skip to content

Commit 0bed86d

Browse files
authored
Merge pull request #104 from jkaninda/refactor
chore: add Time Zone
2 parents 01cf8a3 + e891801 commit 0bed86d

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ services:
8080
- DB_NAME=foo
8181
- DB_USERNAME=bar
8282
- DB_PASSWORD=password
83+
- TZ=Europe/Paris
8384
# mysql-bkup container must be connected to the same network with your database
8485
networks:
8586
- web

docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ ENV VERSION="v1.2.9"
4343
ENV BACKUP_CRON_EXPRESSION=""
4444
ENV TG_TOKEN=""
4545
ENV TG_CHAT_ID=""
46+
ENV TZ=UTC
4647
ARG WORKDIR="/config"
4748
ARG BACKUPDIR="/backup"
4849
ARG BACKUP_TMP_DIR="/tmp/backup"
4950
LABEL author="Jonas Kaninda"
5051

51-
RUN apk add --no-cache mysql-client mariadb-connector-c gnupg
52+
RUN apk --update add --no-cache mysql-client mariadb-connector-c gnupg tzdata
5253
RUN mkdir $WORKDIR
5354
RUN mkdir $BACKUPDIR
5455
RUN mkdir -p $BACKUP_TMP_DIR

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ services:
7373
- DB_NAME=foo
7474
- DB_USERNAME=bar
7575
- DB_PASSWORD=password
76+
- TZ=Europe/Paris
7677
# mysql-bkup container must be connected to the same network with your database
7778
networks:
7879
- web

docs/reference/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Backup, restore and migrate targets, schedule and retention are configured using
6767
| TARGET_DB_PASSWORD | Optional, required for database migration | Target database password |
6868
| TG_TOKEN | Optional, required for Telegram notification | Telegram token (`BOT-ID:BOT-TOKEN`) |
6969
| TG_CHAT_ID | Optional, required for Telegram notification | Telegram Chat ID |
70+
| TZ | Optional | Time Zone |
7071

7172
---
7273
## Run in Scheduled mode

0 commit comments

Comments
 (0)