Sign inSign up

jakubstrama/docker-goaccess

By jakubstrama

•Updated over 3 years ago

Updated version of gregyankovoy/goaccess

Image
0

936

jakubstrama/docker-goaccess repository overview

⁠GitHub:

https://github.com/jakubstrama/docker-goaccess⁠

⁠docker-goaccess

This is a fork of https://github.com/GregYankovoy/docker-goaccess⁠

This is an Alpine linux container which builds GoAccess including GeoIP. It reverse proxies the GoAccess HTML files and websockets through nginx, allowing GoAccess content to be viewed without any other setup.

⁠Version

  • 1.7.2

⁠Usage

⁠Example docker build and push

docker build -t docker-goaccess:1.7.2 .
docker tag docker-goaccess:1.7.2 jakubstrama/docker-goaccess:1.7.2
docker push jakubstrama/docker-goaccess:1.7.2

⁠Docker pull

docker pull jakubstrama/docker-goaccess

⁠Example docker run

docker run -d --restart unless-stopped --name goaccess --network nginxproxy_default -p 7889:7889 -v ~/nginxproxy/data/logs:/opt/log -v ~/docker-goaccess:/config jakubstrama/docker-goaccess

⁠Volume Mounts

  • /config
    • Used to store configuration and GoAccess generated files
  • /opt/log
    • Map to nginx log directory

⁠Variables

  • PUID
    • User Id of user to run nginx & GoAccess
  • PGID
    • User Group to run nginx & GoAccess

⁠Files

  • /config/goaccess.conf
    • GoAccess config file (populated with default config unless modified)
  • /config/html
    • GoAccess generated static HTML

⁠Reverse Proxy

⁠nginx
location ^~ /goaccess {
    resolver 127.0.0.11 valid=30s;
    set $upstream_goaccess goaccess;
    proxy_pass http://$upstream_goaccess:7889/;

    proxy_connect_timeout 1d;
    proxy_send_timeout 1d;
    proxy_read_timeout 1d;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
}

Tag summary

Content type

Image

Digest

sha256:5d28e557b…

Size

40.5 MB

Last updated

over 3 years ago

docker pull jakubstrama/docker-goaccess