Hi folks,
Apologies if this isn’t the right forum for this type of question. If it is, thank you in advance for anyone who is able to walk me through this.
Keep in mind I am still very new to docker and Linux.
I am playing around with the following sample setup @ https://bitbucket.org/osimis/orthanc-setup-samples/src/24e7e460b67951d80f682927d07e129827652e99/docker/basic-authentication/
From the files above, how would I go about mapping the logs to the host machine and have them rotate if the file gets too big?
Thanks,
JB
Hi Johnny,
Orthanc logs are sent to stdout which are captured by Docker. You can use any of Docker’s logs drivers to manage the orthanc logs (Configure logging drivers).
If you use the Osimis Docker image, you can control the destination of the Orthanc logs through the LOGDIR and LOGFILE environment variables (https://book.orthanc-server.com/users/docker-osimis.html?highlight=logdir#special-environment-variables) , but you will need to manually map the logs to your host and configure log rotate manually.
Cheers,
James
Thanks James!
Managed to figure it out and in case anyone else may have missed it as I did. I found this sample @ https://bitbucket.org/osimis/orthanc-setup-samples/src/master/docker/logs/