Install GoAccess

Источники

Установка средствами Docker-compose

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
---
version: "3"
services:

  goaccess:
    image: xavierh/goaccess-for-nginxproxymanager:latest
    container_name: goaccess
    environment:
      - SKIP_ARCHIVED_LOGS=False
      - DEBUG=False
      - BASIC_AUTH=False
      - EXCLUDE_IPS=192.168.10.1-192.168.10.255,10.0.0.1-10.0.0.20,10.5.0.1-10.5.0.255
      - TZ=Europe/Moscow
    volumes:
      - /dconf/nginx/data/logs:/opt/log
    ports:
      - 7880:7880
    restart: unless-stopped
1
2
docker compose pull
docker compose up -d

CLI Установка

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
docker run -d \
  --name="goaccess" \
  -p 7880:7880 \
  -v /dconf/nginx/data/logs:/opt/log \
  -e SKIP_ARCHIVED_LOGS=False \
  -e DEBUG=False \
  -e BASIC_AUTH=False \
  -e EXCLUDE_IPS=192.168.10.1-192.168.10.255,10.0.0.1-10.0.0.20,10.5.0.1-10.5.0.255 \
  -e TZ=Europe/Moscow \
  --restart unless-stopped \
xavierh/goaccess-for-nginxproxymanager:latest

Удаление

1
2
3
docker stop goaccess ;\
docker rm goaccess ;\
docker rmi xavierh/goaccess-for-nginxproxymanager

Связанные статьи