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.

Revisions

  1. DaysJan created this gist Mar 5, 2019.
    15 changes: 15 additions & 0 deletions run-goaccess-docker.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #!/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