Skip to content

apicart/logs-viewer-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Logs Viewer
(docker image)

This image is for the apicart/logs-viewer package.

Installation

Minimal configuration for Docker Compose file

  1. Create a docker-compose.yml file 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"
  1. Run docker-compose up.
  2. The Logs Viewer should be now accessible from http://localhost.
  3. Direct your logs into the external-logs directory on your machine.
  4. 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-logs command (the level of privileges is up to you).