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.