Add analytics. Invert gitignore

This commit is contained in:
2021-12-04 23:13:12 +01:00
parent 4d87b20740
commit ead848575f
3 changed files with 24 additions and 9 deletions

View File

@@ -43,6 +43,7 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik:/data
- /var/log/traefik:/log
healthcheck:
# Sometimes, traefik loses connection to authelia. The only thing that works then is a restart, handled by autoheal.
# I haven't checked for quite a while if this is still a problem, but might as well leave it in there.
@@ -112,6 +113,19 @@ services:
traefik.http.routers.dozzle.tls.certResolver: le
traefik.http.routers.dozzle.middlewares: auth@file
analytics:
image: gregyankovoy/goaccess
volumes:
- ./analytics:/config
- /var/log/traefik:/opt/log
networks:
web:
labels:
traefik.enable: true
traefik.http.routers.analytics.rule: Host(`analytics.${PRIVATE_DOMAIN}`)
traefik.http.routers.analytics.tls.certResolver: le
traefik.http.routers.analytics.middlewares: auth@file
# labels:
# The following three labels are always needed. Make sure to replace <SERVICE> with a unique name