Edit: The default setting from lemmy-ansible is fine since it assumes you have your own log driver setting for the docker daemon. It wasn’t working for me because I updated the daemon settings after the lemmy containers were created. A quick docker compose down and up did the trick.

My own instance has been running for about a week and I’ve noticed the free space on my disk is being eaten away at a suspiciously fast rate. I checked with ncdu and apparently the lemmy container has a log file that is a gigabyte json blob. The docker compose yaml file does not define a logging driver, which means the default json driver will be used, and it has no rotation.

I’ve deleted it and modified docker-compose.yml to use local logging for now. Just throwing this out here in case anyone is having the same issue.

  • Burger@burggit.moe
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Ah, I never noticed since our docker daemon uses the syslog driver globally. And our syslog uses a memory buffer to save writes to the SSD.

    • awoo@burggit.moeOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Yeah I eventually made the change on the docker daemon side since it’s defaulted to json-file as well. Just needed to recreate the containers. Life is good now.