Skip to content

Commit 53f5e68

Browse files
committed
Update docker-compose.yml
1 parent 343c0d7 commit 53f5e68

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
@@ -185,6 +185,8 @@ services:
185185
TZ: '${LOCAL_TIMEZONE}'
186186
labels:
187187
- "docker-volume-backup.stop-during-backup=true"
188+
- "docker-volume-backup.archive-pre=/bin/sh -c 'mysqldump -uroot -p${MYSQL_ROOT_PASSWORD} --all-databases > /tmp/backup/db_backup_data.sql'"
189+
- "docker-volume-backup.exec-label=database"
188190
command: "--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --default-authentication-plugin=mysql_native_password"
189191

190192
redis:

0 commit comments

Comments
 (0)