Skip to content

Commit 225cb87

Browse files
committed
build(compose): Fix db backup command
The image is changed, and now it uses a different interface. We have to specify the command, and use different env variables for db name. The OPTS options is not available anymore so we are not able to exclude the logs table.
1 parent 0330fe5 commit 225cb87

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

build/docker-compose.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,21 +90,20 @@ services:
9090

9191
db-backup:
9292
image: databack/mysql-backup
93+
command: dump
9394
restart: always
9495
user: "${DB_BACKUP_UID}"
9596
volumes:
9697
- ./db-backup:/db
9798
environment:
98-
DB_NAMES: acm_statistics
9999
DB_DUMP_TARGET: /db
100100
DB_USER: root
101101
DB_PASS: ${MYSQL_ROOT_PASSWORD}
102102
# DB_DUMP_BEGIN: +2
103103
# backup at 3:00 am
104-
DB_DUMP_BEGIN: " 0300"
104+
DB_DUMP_BEGIN: "0300"
105105
DB_SERVER: db
106-
# Do not backup Logs table
107-
MYSQLDUMP_OPTS: --ignore-table=acm_statistics.AbpAuditLogs --ignore-table=acm_statistics.AbpUserLoginAttempts
106+
DB_DUMP_INCLUDE: acm_statistics
108107
depends_on:
109108
- db
110109
labels:

0 commit comments

Comments
 (0)