Frontail log viewer in Docker on Raspberry Pi

Hi

Does anyone have Frontail log viewer running in Docker on a Raspberry Pi?

If yes, then I would very much appreciate to see the docker run or docker-compose used to get this working (or alternatively, a custom Dockerfile to use.), as I am having a hard time finding a suitable docker image that works out for the box on the Raspberry Pi, like this one.

Hey, I’m using the architecture below in one single docker-compose file for my testing environment.
It includes NGINX so the actual openHAB and Frontail applications run behind a proxy. I use certificates for the same.

version: '3.0'
services:

  nginx:
    image: nginx:latest
    container_name: nginx02
    restart: always  
    volumes:
      - ./nginx/default.conf:/etc/nginx/conf.d/default.conf
      - ./nginx/nginx.conf:/etc/nginx/nginx.conf
      - ./nginx/index.html:/usr/share/nginx/html/index.html
      - ./certs:/etc/nginx/certs
    ports:
      - 8443:443
    networks:
      - openhab-network

  openhab:
    image: "openhab/openhab:3.3.0.M2"
    container_name: openhab330M2
    restart: always
    volumes:
      - "/etc/localtime:/etc/localtime:ro"
      - "/etc/timezone:/etc/timezone:ro"
      - "/opt/openhabdevtest/openhab_addons:/openhab/addons"
      - "/opt/openhabdevtest/openhab_conf:/openhab/conf"
      - "/opt/openhabdevtest/openhab_userdata:/openhab/userdata"
    environment:
      OPENHAB_HTTP_PORT: "8880"
      EXTRA_JAVA_OPTS: "-Duser.timezone=Europe/Amsterdam"
      GROUP_ID: 115
      USER_ID: 998
    healthcheck:
      test: "curl --connect-timeout 5 --silent -f http://localhost:8880/ || exit 1"
      interval: 5m
      timeout: 5s
      retries: 3  
    expose:
      - 8880
    networks:
      - openhab-network

  frontail:
    image: schnuecks/frontail-multi:latest
    container_name: frontail02
    command: --disable-usage-stats --ui-highlight --ui-highlight-preset /frontail/preset/openhab_AEM.json -t openhab_AEM -l 5000 -n 100 /logs/openhab.log /logs/events.log
    volumes:
    - /opt/openhabdevtest/openhab_userdata/logs:/logs:ro
    expose:
      - 9001
    networks:
      - openhab-network
    restart: unless-stopped

networks:
  openhab-network:
    name: openhab-network
    external: false
    driver: bridge

Hope this sets you in the right direction in your quest :wink:

Best,
Edward

1 Like

Hi Edward,

thank you very much:
Very smart solution!

I also found this approach:

sudo docker run -d \
  --name frontail-openhab \
  -p 9001:9001 \
  -v /var/log/openhab:/var/log/openhab:ro \
  welteki/frontail-openhab:latest

Works fine, but is not as sophisticated as your approach :slight_smile:

Kind regards
Joachim

Welcome, if you want to know how I use NGINX to distinct in the various application containers let me know. I can post the NGINX config as well.

Best,
E