Add analytics. Invert gitignore
This commit is contained in:
parent
4d87b20740
commit
ead848575f
16
.gitignore
vendored
16
.gitignore
vendored
@ -1,12 +1,10 @@
|
||||
.env
|
||||
**/*
|
||||
!.gitignore
|
||||
|
||||
traefik/acme.json
|
||||
traefik/certs/
|
||||
traefik/traefik.log
|
||||
traefik/config/old.yaml
|
||||
!README.md
|
||||
!docker-compose.yaml
|
||||
|
||||
authelia/db.sqlite3
|
||||
authelia/notification.txt
|
||||
authelia/users_database.yml
|
||||
!traefik/traefik.yaml
|
||||
!traefik/config/*
|
||||
|
||||
homer/
|
||||
!authelia/configuration.yaml
|
@ -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
|
||||
|
@ -15,6 +15,9 @@ log:
|
||||
level: INFO
|
||||
# level: DEBUG
|
||||
|
||||
accessLog:
|
||||
filePath: /log/access.log
|
||||
|
||||
entryPoints:
|
||||
web:
|
||||
address: :80
|
||||
|
Loading…
x
Reference in New Issue
Block a user