This image is for the apicart/logs-viewer package.
Minimal configuration for Docker Compose file
- Create a
docker-compose.ymlfile with the following content.
version: "3"
services:
logs-viewer:
image: "apicart/logs-viewer"
container_name: "logs-viewer"
working_dir: "/var/www"
volumes:
- "./external-logs:/var/www/var/external_logs"
ports:
- "80:80"
- Run
docker-compose up. - The Logs Viewer should be now accessible from http://localhost.
- Direct your logs into the external-logs directory on your machine.
- In case that files cannot be created in the external-logs directory because of the "access denined error" run for example the
chmod -R 777 external-logscommand (the level of privileges is up to you).