The Nginx Proxy Manager generate logs of every connection made. With this data, GregYankovoy created a docker image that provides a real-time data dashboard. It can be run easily alongside the Nginx Proxy Manager.
If you have not set up Nginx Proxy Manager, check out my guide at the link below.
How to install GoAccess?
Run the command below at your Nginx Proxy Manager server terminal.
What does each of these means?
docker run --name goaccessto run a docker container and set the name as
-p 7889:7889is to host the docker image at the 7889 port
-v ~/nginx-proxy-manager/data/logs:/opt/log, to bind the Nginx logs to the docker container log at
-v ~/goaccess:/config, to bind the image config directory to the
goaccessdirectory at your home directory
-d gregyankovoy/goaccess, to run the container in the background and print container ID
You can check if the docker container is running by running
docker ps command.
Add the log file to GoAccess
Now, the config file will be created at
~/goaccess/config/. Let's configure the config file.
For Nginx Proxy Manager, add the following lines to the
Save the file and restart your
goaccess docker image.
docker restart goaccess
Navigate to your GoAccess page. Replace
127.0.0.1 with your IP address.