Enable mysql binlog by default

This commit is contained in:
cytopia 2021-05-19 19:04:22 +02:00
parent fb390ac429
commit f28e1ee4a4
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
2 changed files with 5 additions and 0 deletions

4
.devilbox/cfg/mysql.cnf Normal file
View File

@ -0,0 +1,4 @@
[mysqld]
server_id = 1
log_bin = "mysql-bin"
sync_binlog = 0

View File

@ -341,6 +341,7 @@ services:
# Mount devilbox user-defined cnf files in order
# to overwrite the MySQL server configuration
- ${DEVILBOX_PATH}/.devilbox/cfg/mysql.cnf:/etc/mysql/conf.d/devilbox.cnf:ro${MOUNT_OPTIONS}
- ${DEVILBOX_PATH}/cfg/${MYSQL_SERVER}:/etc/mysql/docker-default.d:ro${MOUNT_OPTIONS}
# Mount MySQL Data directory