Sign inSign up

lifailon/toolong-web

By lifailon

Updated 11 months ago

This is a simple image for run toolong in the Web interface to view and filter all log files.

Image
Security
Operating systems
Monitoring & observability
0

568

lifailon/toolong-web repository overview

Toolong Web

This is a simple image to run toolong in a web interface via ttyd to remotely view and filter all syslog files.

Launch

To run the container, create a docker-compose.yml and use the image from Docker Hub:

services:
  toolong-web:
    image: lifailon/toolong-web:latest
    build:
      context: .
      dockerfile: Dockerfile
    container_name: toolong-web
    restart: unless-stopped
    environment:
      - PORT=4444
      - USERNAME=
      - PASSWORD=
      # - LOGPATH=/var/log/syslog*
      - LOGPATH=/var/log/*log*
    ports:
      - 4444:4444
    volumes:
      - /var/log:/var/log:ro

docker-compose up -d

Build

FROM python:3.11-alpine
RUN apk add --no-cache ttyd
RUN pip install --no-cache-dir toolong

ENTRYPOINT ["sh", "-c", "ttyd -W -p ${PORT} $( [ -n \"${USERNAME}\" ] && [ -n \"${PASSWORD}\" ] && echo \"-c ${USERNAME}:${PASSWORD}\" ) tl ${LOGPATH}"]

docker-compose up -d --build

Tag summary

Content type

Image

Digest

sha256:afd6731cc

Size

29.2 MB

Last updated

11 months ago

docker pull lifailon/toolong-web