mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
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:
parent
2ddc2ae90a
commit
7ba762ebec
1 changed files with 6 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue