diff --git a/.gitignore b/.gitignore index 75339bf..72c1fed 100644 --- a/.gitignore +++ b/.gitignore @@ -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 \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index b5db153..d5dcd85 100644 --- a/docker-compose.yaml +++ b/docker-compose.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 with a unique name diff --git a/traefik/traefik.yaml b/traefik/traefik.yaml index 4d016f6..839cd30 100644 --- a/traefik/traefik.yaml +++ b/traefik/traefik.yaml @@ -15,6 +15,9 @@ log: level: INFO # level: DEBUG +accessLog: + filePath: /log/access.log + entryPoints: web: address: :80