-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
Hello! I have an issue running GoAccess with Traefik. I have followed the code that you provided in the repo (also added a few labels and docker volume to suit my needs), however, I am getting HTTP Error 400.
I have checked the logs for GoAccess container and it shows:
[PARSING /srv/logs/access.log] {68149} @ {68149/s}
WebSocket server ready to accept new client connections
I have looked inside the GoAccess container, the access.logs and traefik.logs exist. I've also checked and the report.html file is there. I am not sure what went wrong. Here is my yaml file
services:
goaccess:
image: allinurl/goaccess
container_name: goaccess
volumes:
- ./config/traefik.conf:/srv/config/goaccess.conf
- traefik_traefik-logs:/srv/logs:ro
- ./public:/srv/report
command: ["--no-global-config", "--config-file=/srv/config/goaccess.conf"]
labels:
- traefik.enable=true
- traefik.http.routers.goaccess.rule=Host(`goaccess.example.com`)
- traefik.http.routers.goaccess.entrypoints=websecure
- traefik.http.routers.goaccess.tls=true
- traefik.http.routers.goaccess.tls.certresolver=cloudflare
- traefik.http.services.goaccess.loadbalancer.server.port=443
networks:
- traefik_default
restart: unless-stopped
networks:
traefik_default:
external: true
volumes:
traefik_traefik-logs:
external: true
traefik.conf file
tz Europe/Zurich
time-format %H:%M:%S
date-format %Y-%m-%d
log-format COMBINED
log-file /srv/logs/access.log
output /srv/report/report.html
real-time-html true
ws-url wss://goaccess.example.com
port 443
If you can point me where to look, that would be great. Thanks a lot!