jakobjp
(Jakob Jensen)
October 1, 2018, 6:07pm
1
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 .
EdwardV
(Edward Voermans)
April 6, 2022, 5:30pm
3
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
Best,
Edward
1 Like
simcla
(Joachim)
April 8, 2022, 7:15am
4
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
Kind regards
Joachim
EdwardV
(Edward Voermans)
April 8, 2022, 8:17am
5
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