Compare commits

...

2 Commits

Author SHA1 Message Date
ead848575f Add analytics. Invert gitignore 2021-12-04 23:13:12 +01:00
4d87b20740 Add links to other repos 2021-09-05 16:22:51 +02:00
4 changed files with 35 additions and 9 deletions

16
.gitignore vendored
View File

@@ -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

View File

@@ -62,3 +62,11 @@ A bridge network for containers that shall be accessible by web interface. Route
- Authelia will ONLY work with https. Both the authelia url itself and the one being authenticated must be https.
- The authorization link should NOT end with `/#/` or `/%2F/` or anything, just `/`. Otherwise it will not redirect you back after authorizing.
# Docker-compose pieces that depend on this
- [SSH entrypoint](/thomas/docker-ssh/)
- [Home Automation](/thomas/docker-ha/)
- [GIT server](/thomas/docker-git/)
- [Plex media server](/thomas/docker-plex/)

View File

@@ -23,6 +23,8 @@ services:
container_name: traefik
image: traefik
restart: always
depends_on:
- authelia
environment:
- EMAIL
- PRIVATE_DOMAIN
@@ -41,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.
@@ -110,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

View File

@@ -13,6 +13,10 @@ providers:
log:
filePath: /data/traefik.log
level: INFO
# level: DEBUG
accessLog:
filePath: /log/access.log
entryPoints:
web: