Add analytics. Invert gitignore
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user