chore: add Time Zone

This commit is contained in:
Jonas Kaninda
2024-09-30 17:44:45 +02:00
parent efea81833a
commit e891801125
4 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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