docker-build / Build image (push) Successful in 11s
Add SQLITE_TIMEOUT, BACKUP_RETRIES, and BACKUP_RETRY_DELAY environment variables to handle "database is locked" errors during backup. Retry the sqlite3 .backup command with configurable timeouts and delays, and clean up any WAL/SHM files that may interfere with subsequent attempts. Bump version to 1.2.2.
27 lines
587 B
YAML
27 lines
587 B
YAML
services:
|
|
sqlite_backup:
|
|
# image: git.realmanual.ru/pub/sqlite-backup/backup:latest
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: sqlite_backup
|
|
restart: always
|
|
volumes:
|
|
- ./var/lib/sqlite/:/data
|
|
environment:
|
|
- DB_FILE
|
|
- CRONTAB
|
|
- DELETE_AFTER
|
|
- KEEP_LAST
|
|
- TZ
|
|
- SQLITE_TIMEOUT
|
|
- BACKUP_RETRIES
|
|
- BACKUP_RETRY_DELAY
|
|
- MINIO_PATH
|
|
- MINIO_ACCOUNT_ID
|
|
- MINIO_APPLICATION_KEY
|
|
- MINIO_ENDPOINT
|
|
- MINIO_LOCATION
|
|
- HEALTHCHECK_URL
|
|
- HEALTHCHECK_UUID
|