Added Pi-Hole to Network. Chagned Domain. Traefik extra providers

This commit is contained in:
Florian Zirker 2021-05-22 12:33:40 +02:00
parent 5e7be8598e
commit 2bce33d9ca
6 changed files with 47 additions and 18 deletions

View file

@ -52,7 +52,6 @@ services:
- "docker.group=monitoring"
# influxdb to store time based data. Adress is drax.fzirker.lan:8086
influxdb:
# image: arm32v7/influxdb
image: influxdb:1.8

View file

@ -80,7 +80,7 @@
# urls = ["unix:///var/run/influxdb.sock"]
# urls = ["udp://127.0.0.1:8089"]
# urls = ["http://127.0.0.1:8086"]
urls = ["http://drax.fzirker.lan:8086"] # required
urls = ["http://192.168.16.5:8086"] # required
###############################################################################
@ -254,11 +254,11 @@
"https://www.feuerwehr-kapsweyer.de",
"https://ping.feuerwehr-kapsweyer.de",
"http://ping.feuerwehr-kapsweyer.de",
"http://portainer.fzirker.lan",
"http://gpxviewer.fzirker.lan",
"http://traefik.fzirker.lan/dashboard/",
"http://heimdall.fzirker.lan",
"http://monitoring.fzirker.lan/login",
"http://portainer.lan",
"http://gpxviewer.lan",
"http://traefik.lan/dashboard/",
"http://heimdall.lan",
"http://monitoring.lan/login",
#"http://solarmaxpi.zirker.lan"
]
interval = "60s"
@ -341,13 +341,14 @@ interfaces = ["enx001e0636be71"]
[[inputs.ping]]
## List of urls to ping
urls = [
"fritz-box.fzirker.lan",
"wlan-ap.fzirker.lan",
"drax.fzirker.lan",
"fritz-box.lan",
"wlan-ap.lan",
"drax.lan",
"florianzirker.de",
"t-online.de",
"8.8.8.8",
"4.2.2.2",
"9.9.9.9",
"example.com"
]

View file

@ -8,8 +8,8 @@ services:
- ${VOLUMES_PATH}/portainer:/data
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
expose:
- "9000"
ports:
- "9000:9000" # to get portainer without proxy too
networks:
- web
labels:

View file

@ -5,12 +5,6 @@ services:
traefik:
image: traefik:v2.4
restart: always
command:
- "--api.insecure=true"
#- "--accesslog=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "443:443"
@ -18,6 +12,8 @@ services:
- web
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "$PWD/traefik.yml:/etc/traefik/traefik.yml"
- "$PWD/extraProviders/:/extraProviders:ro"
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`traefik.${DOMAIN}`)"

View file

@ -0,0 +1,10 @@
http:
routers:
pihole:
rule: "Host(`pihole.lan`) || Host(`pi.hole`)"
service: pihole
services:
pihole:
loadbalancer:
servers:
- url: "http://192.168.16.5:8080/admin/"

23
proxy/traefik.yml Normal file
View file

@ -0,0 +1,23 @@
debug: true
checkNewVersion: true
logLevel: INFO
#defaultEntryPoints: ["https","http"]
defaultEntryPoints: [http]
api:
insecure: true
providers:
docker:
exposedbydefault: false
endpoint: "unix:///var/run/docker.sock"
file:
directory: /extraProviders
entryPoints:
web:
address: ':80'