friendica / docker

Docker image for Friendica
https://friendi.ca
GNU Affero General Public License v3.0
44 stars 18 forks source link

logging #204

Closed ne20002 closed 2 years ago

ne20002 commented 2 years ago

I request to add the following

I'm using the image with Podman. Podman allows to use systemd inside the image and I'd like to have some logfile housekeeping done automatically within the image itself. I'm not sure if Docker is capable of something similar.

nupplaphil commented 2 years ago

@ne20002 - I'm not sure if it's the best way to handle logging inside the Docker containers. There are two different distros (alpine and debian) and I try to avoid dependencies as much as I can ..

Of course your setup would be possible, but I'm not sure what will happen when using Docker/Kubernetes specific logging mechanism on top of the logrotate principles ..

ne20002 commented 2 years ago

I solved it for me by mouting the /var/log and created a log rotate definition on the host. Works fine so far.