After some tinkering, **yes ** this indeed was my issue. The logs for pictrs and lemmy in particular were between 3 and 8 gb only after a couple weeks of info level logging.
Steps to fix (the post above has more detail but adding my full workflow in case that helps folks, some of this wasn't super apparent to me) - these steps assume a docker/ansible install:
SSH to your instance.
Change to your instance install dir
most likely:
cd /srv/lemmy/{domain.name}
List currently running containers
docker ps --format '{{.Name}}'
Now for each docker container name:
Find the path/name of the associated log file:
docker inspect --format='{{.LogPath}}' {one of the container names from above}
Optionally check the file size of the log
ls -lh {path to log file from the inspect command}
Clear the log
truncate -s 0 {path to log file from the inspect command}
After you have cleared any logs you want to clear:
Modify docker-compose.yml adding the following to each container:
After some tinkering, **yes ** this indeed was my issue. The logs for
pictrsandlemmyin particular were between 3 and 8 gb only after a couple weeks ofinfolevel logging.Steps to fix (the post above has more detail but adding my full workflow in case that helps folks, some of this wasn't super apparent to me) - these steps assume a docker/ansible install:
most likely:
cd /srv/lemmy/{domain.name}docker ps --format '{{.Name}}'Now for each docker container name:
docker inspect --format='{{.LogPath}}' {one of the container names from above}ls -lh {path to log file from the inspect command}truncate -s 0 {path to log file from the inspect command}After you have cleared any logs you want to clear:
logging: driver: "json-file" options: max-size: "100m"docker-compose restart