Frontail custom theme coloring

Hi,

Thought you know how to use docker as you mentioned you are also running OH in a docker container.
The approach of setting up the frontail container should be similar and can be done via command line.
But again, it’s important that your OH log folder is mounted externally so that frontail can usw it.
I so not use a Synology anymore, but there seem to be a lot of guides out there that show the basics.
Maybe start there and then it should hopefully make more sense on volume mounting and yaml.
Chris

Hi Chris, thanks for the link, it has made me a little smarter… I’ve only been using Docker since the day before yesterday and only via the Synology GUI, i.e. without a command line so far.

What I can’t imagine yet: The .yml file only consists of these few lines (with an adjusted volume):

frontail:
    image: schnuecks/frontail-multi:latest
    container_name: frontail
    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/openhab/userdata/logs:/logs:ro
    ports:
    - "9001:9001"
    restart: unless-stopped

And could you give me a tip for the spelling if two files are to be logged?

Below is my docker-compose.yml (make sure you call it this way):


frontail:
  image: schnuecks/frontail-multi:latest
  container_name: frontail
  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:
  - /var/log/openhab/:/logs:ro
  ports:
  - "9001:9001"
  restart: unless-stopped

Based on my volume mount, I am basically mounting the full openhab log folder (in my case /var/log/openhab).

Take into account that you will need docker-compose though (which you need to install on top of docker). As mentioned, I never did run docker on Synology, but I would assume you can install docker-compose also via CLI (or even through packages?).

Once done and once you saved your docker-compose.yml you can then run sudo docker-compose up --force-recreate --build -d (this is my standard command, so that I do not have to change it every time I re-create a docker-compose, for you it could be shorter but makes no difference).

Let me know how it goes.

EDIT: If you want to log two different files, you will need to (1) mount the right directors and (2) edit the frontail command line to include those - i.e. /logs/yourlogname (as you can see from the volumes line, /logs:ro points at the moment to the openhab log folder; hence if you have different folders and want it all in one log window, you might need to adjust those paths accordingly)

Hi Chris, you are my man! It worked like magic (for the second time).

Thank you for your help and for your file.

Look really great!

And… I’ve learned something new…

For anyone else, here is my .yml file:

frontail:

  image: schnuecks/frontail-multi:latest

  container_name: frontail

  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:

  - /volume1/docker/openhab/userdata/logs:/logs:ro

  ports:

  - "9001:9001"

  restart: unless-stopped
1 Like

Thank you for the additional themes and rules in the json.
I updated them to the main repository and credited you (hope it is ok).
:slight_smile:

Of course it is OK, Alberto. I am proud you used my code.

Hi Guys,

Bit late to the party but I’m in the process of moving my OH install to v3 and also from pi to Syno Docker. All going well and I’ve got a container from welteki working for logging via frontail.

I’ve just come across this thread as I was wondering if I could make the logs a bit more user / read friendly…and you guys have pretty much read my mind and done it for me…THANKS!

However, I’ve found the image schnuecks/frontail-multi:latest on docker, downloaded and launched it. Added the logs volume to the settings and run the container…

image

but it just runs for a second and then throws this error:

image

I’m relatively new to docker and have been trawling the thread and docker docs to work out what I’ve done wrong but I’m hoping one of the clever people on this thread can tell me where I’ve gone wrong / point me in the right direction.

TIA.

Hey!
@AEM I have a native debian 11 system. Could you tell me how do i install your frontail app please?

thanks!
best regards!

Sample for OH2 but it works for OH3 too, you need to change openhab2 to openhab in path.