From ebd4606802bd8540157b3da0d2b6b962b75e446c Mon Sep 17 00:00:00 2001 From: Copolycube Date: Thu, 24 Jun 2021 12:43:19 -0400 Subject: [PATCH 1/2] Update README.md --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index a88cbb5..3330d63 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,26 @@ This is an Alpine linux container which builds GoAccess including GeoIP. It rev ``` docker run --name goaccess -p 7889:7889 -v /path/to/host/nginx/logs:/opt/log -v /path/to/goaccess/storage:/config -d gregyankovoy/goaccess ``` +## Example `docker-compose.yml` + +``` +version: '2.1' + +volumes: + goaccess-html: + +services: + goaccess: + image: gregyankovoy/goaccess + container_name: goaccess + ports: + - 7889:7889 + volumes: + - /var/log/nginx/:/opt/log + - ./goaccess:/config + - goaccess-html:/config/html + restart: unless-stopped +``` ## Volume Mounts - /config From f06c69238200eadf87afd605d7061ee5fb5d0848 Mon Sep 17 00:00:00 2001 From: Copolycube Date: Wed, 29 Sep 2021 11:14:46 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3330d63..5263367 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ This is an Alpine linux container which builds GoAccess including GeoIP. It rev ``` docker run --name goaccess -p 7889:7889 -v /path/to/host/nginx/logs:/opt/log -v /path/to/goaccess/storage:/config -d gregyankovoy/goaccess ``` -## Example `docker-compose.yml` - +## Example with docker compose +`docker-compose.yml` file : ``` version: '2.1' @@ -21,8 +21,8 @@ services: ports: - 7889:7889 volumes: - - /var/log/nginx/:/opt/log - - ./goaccess:/config + - /path/to/host/nginx/logs:/opt/log + - /path/to/goaccess/storage:/config - goaccess-html:/config/html restart: unless-stopped ```