Back

Mariadb log size

  • 0
  • Self Hosted
outrelouxhe
28 Mar, 2025, 11:24

Hello. I'm using appwrite 1.2.1 self-hosted and I see that there is a log file ib_logfile0 in /var/lib/docker/volumes/appwrite_appwrite-mariadb/_data folder which is taking a lot of disk space. How can I handle this ? Can I delete this file ? Is there a setting to limit the mariadb log size ?

I have the following config at the top of my docker-compose.yml :

TypeScript
x-logging: &x-logging
  logging:
    driver: 'json-file'
    options:
      max-file: '5'
      max-size: '10m'

Thank you !

TL;DR
Developers are concerned about the large size of the Mariadb log file ib_logfile0. They want to know if they can delete the file or limit the log size. The log size can be controlled by adding the following settings in the docker-compose.yml file: ```yaml x-logging: &x-logging logging: driver: 'json-file' options: max-file: '5' max-size: '10m' ```
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more