Dockerfile
For an on-premise server, also add the following keys to
Also, in above file, we used /etc/atatus-infra-agent/atatus.yml in the image:php-fpm as a default process. But you can replace it with your process command.
In Docker, Atatus infra agent won’t start automatically. So you have to add the (/usr/bin/atatus-infra-agent -c /etc/atatus-infra-agent/ -l /var/log/atatus-infra-agent/ &) before your process command either in ENTRYPOINT/CMD as follows.
Enable Logs
You can collect logs through infra agent by enablinglogs_enabled option.
In below Dockerfile, we have added the following
files.yml
Following is the sample log config file to capture the app logs. You can change the file path under
paths field.
- Set
logs_enabledto true. - Copy sample
files.ymlto/etc/atatus-infra-agent/conf.d/files.d/folder. This file defines from which location/path to collect logs.