Skip to content

Instantly share code, notes, and snippets.

@DaysJan
Created March 5, 2019 04:57
Show Gist options
  • Save DaysJan/e31fa4bd9c9ee9fe7f7ae9e46a0af434 to your computer and use it in GitHub Desktop.
Save DaysJan/e31fa4bd9c9ee9fe7f7ae9e46a0af434 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir -p /srv/goaccess/{data,html}
curl -o /srv/goaccess/data/goaccess.conf.default https://raw.githubusercontent.com/allinurl/goaccess/master/config/goaccess.conf
cp /srv/goaccess/data/goaccess.conf.default /srv/goaccess/data/goaccess.conf
docker run --restart=always -d -p 7890:7890 \
-v "/srv/goaccess/data:/srv/data" \
-v "/srv/goaccess/logs:/srv/logs" \
-v "/var/log/nginx/access.log:/srv/logs/access.log" \
-v "/srv/goaccess/html:/srv/report" \
--name=goaccess allinurl/goaccess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment