This is a simple image for run toolong in the Web interface to view and filter all log files.
568
This is a simple image to run toolong in a web interface via ttyd to remotely view and filter all syslog files.
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
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
Content type
Image
Digest
sha256:afd6731cc…
Size
29.2 MB
Last updated
11 months ago
docker pull lifailon/toolong-web