Set MySQL binary logs expiration to save disk space in dev (#43024)

Manually tested.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
* Updated database container configurations to manage log retention.
Binary logs will now automatically expire after 24 hours in local
development environments, helping manage disk space usage during testing
and development workflows.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Victor Lyuboslavsky 2026-04-06 08:57:23 -05:00 committed by GitHub
parent 2ddc2ae90a
commit 7ba762ebec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,8 @@ services:
"--server-id=master-01",
# Required for storage of Apple MDM bootstrap packages.
"--max_allowed_packet=536870912",
# Automatically expire binary logs after 1 day to save disk space in dev. Default is 30 days.
"--binlog-expire-logs-seconds=86400",
]
environment: &mysql-default-environment
MYSQL_ROOT_PASSWORD: toor
@ -46,6 +48,8 @@ services:
"--server-id=1",
# Required for storage of Apple MDM bootstrap packages.
"--max_allowed_packet=536870912",
# Automatically expire binary logs after 1 day to save disk space in dev. Default is 30 days.
"--binlog-expire-logs-seconds=86400",
]
environment: *mysql-default-environment
ports:
@ -72,6 +76,8 @@ services:
"--server-id=2",
# Required for storage of Apple MDM bootstrap packages.
"--max_allowed_packet=536870912",
# Automatically expire binary logs after 1 day to save disk space in dev. Default is 30 days.
"--binlog-expire-logs-seconds=86400",
]
environment: *mysql-default-environment
ports: