goaccess setup and integration #1
@@ -1,5 +1,5 @@
|
|||||||
services:
|
services:
|
||||||
web:
|
nginx:
|
||||||
container_name: nginx
|
container_name: nginx
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
ports:
|
ports:
|
||||||
@@ -8,6 +8,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./data/nginx.conf:/etc/nginx/nginx.conf:ro
|
- ./data/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
- ./data/conf.d:/etc/nginx/conf.d:ro
|
- ./data/conf.d:/etc/nginx/conf.d:ro
|
||||||
|
- ./data/logs:/var/log/nginx
|
||||||
|
- ./data/public:/usr/share/nginx/html:rw
|
||||||
- ./certbot/conf:/etc/letsencrypt
|
- ./certbot/conf:/etc/letsencrypt
|
||||||
- ./certbot/www:/var/www/certbot
|
- ./certbot/www:/var/www/certbot
|
||||||
restart: always
|
restart: always
|
||||||
@@ -16,6 +18,7 @@ services:
|
|||||||
- nginx
|
- nginx
|
||||||
|
|
||||||
certbot:
|
certbot:
|
||||||
|
container_name: certbot
|
||||||
image: certbot/dns-cloudflare:latest
|
image: certbot/dns-cloudflare:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
@@ -26,6 +29,27 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- nginx
|
- nginx
|
||||||
|
|
||||||
|
goaccess:
|
||||||
|
container_name: goaccess
|
||||||
|
image: allinurl/goaccess
|
||||||
|
user: "0:0"
|
||||||
|
ports:
|
||||||
|
- 0.0.0.0:7890:7890
|
||||||
|
volumes:
|
||||||
|
- ./goaccess/goaccess.conf:/srv/config/goaccess.conf
|
||||||
|
- ./data/logs:/srv/logs:rw
|
||||||
|
- ./data/public:/srv/report:rw
|
||||||
|
- ./certbot/conf:/etc/letsencrypt
|
||||||
|
command: ["--no-global-config",
|
||||||
|
"--config-file=/srv/config/goaccess.conf",
|
||||||
|
"--ssl-cert=/etc/letsencrypt/live/novicelab.io/fullchain.pem",
|
||||||
|
"--ssl-key=/etc/letsencrypt/live/novicelab.io/privkey.pem"]
|
||||||
|
environment:
|
||||||
|
- TZ=Africa/Nairobi
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- nginx
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
nginx:
|
nginx:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|||||||
Reference in New Issue
Block a user