Skip to content

Commit 875d86d

Browse files
committed
Update docker-compose.yml
1 parent 408b370 commit 875d86d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ services:
186186
TZ: '${LOCAL_TIMEZONE}'
187187
labels:
188188
- "docker-volume-backup.stop-during-backup=true"
189+
- "docker-volume-backup.archive-pre=/bin/sh -c 'mysqldump -uroot -p${MYSQL_ROOT_PASSWORD} --all-databases > /tmp/backup/db_backup_data.sql'"
190+
- "docker-volume-backup.exec-label=database"
189191
command: "--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --default-authentication-plugin=mysql_native_password"
190192

191193
redis:

0 commit comments

Comments
 (0)