Added Pi-Hole to Network. Chagned Domain. Traefik extra providers
This commit is contained in:
parent
5e7be8598e
commit
2bce33d9ca
6 changed files with 47 additions and 18 deletions
|
@ -52,7 +52,6 @@ services:
|
||||||
- "docker.group=monitoring"
|
- "docker.group=monitoring"
|
||||||
|
|
||||||
|
|
||||||
# influxdb to store time based data. Adress is drax.fzirker.lan:8086
|
|
||||||
influxdb:
|
influxdb:
|
||||||
# image: arm32v7/influxdb
|
# image: arm32v7/influxdb
|
||||||
image: influxdb:1.8
|
image: influxdb:1.8
|
||||||
|
|
|
@ -80,7 +80,7 @@
|
||||||
# urls = ["unix:///var/run/influxdb.sock"]
|
# urls = ["unix:///var/run/influxdb.sock"]
|
||||||
# urls = ["udp://127.0.0.1:8089"]
|
# urls = ["udp://127.0.0.1:8089"]
|
||||||
# urls = ["http://127.0.0.1:8086"]
|
# 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://www.feuerwehr-kapsweyer.de",
|
||||||
"https://ping.feuerwehr-kapsweyer.de",
|
"https://ping.feuerwehr-kapsweyer.de",
|
||||||
"http://ping.feuerwehr-kapsweyer.de",
|
"http://ping.feuerwehr-kapsweyer.de",
|
||||||
"http://portainer.fzirker.lan",
|
"http://portainer.lan",
|
||||||
"http://gpxviewer.fzirker.lan",
|
"http://gpxviewer.lan",
|
||||||
"http://traefik.fzirker.lan/dashboard/",
|
"http://traefik.lan/dashboard/",
|
||||||
"http://heimdall.fzirker.lan",
|
"http://heimdall.lan",
|
||||||
"http://monitoring.fzirker.lan/login",
|
"http://monitoring.lan/login",
|
||||||
#"http://solarmaxpi.zirker.lan"
|
#"http://solarmaxpi.zirker.lan"
|
||||||
]
|
]
|
||||||
interval = "60s"
|
interval = "60s"
|
||||||
|
@ -341,13 +341,14 @@ interfaces = ["enx001e0636be71"]
|
||||||
[[inputs.ping]]
|
[[inputs.ping]]
|
||||||
## List of urls to ping
|
## List of urls to ping
|
||||||
urls = [
|
urls = [
|
||||||
"fritz-box.fzirker.lan",
|
"fritz-box.lan",
|
||||||
"wlan-ap.fzirker.lan",
|
"wlan-ap.lan",
|
||||||
"drax.fzirker.lan",
|
"drax.lan",
|
||||||
"florianzirker.de",
|
"florianzirker.de",
|
||||||
"t-online.de",
|
"t-online.de",
|
||||||
"8.8.8.8",
|
"8.8.8.8",
|
||||||
"4.2.2.2",
|
"4.2.2.2",
|
||||||
|
"9.9.9.9",
|
||||||
"example.com"
|
"example.com"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,8 @@ services:
|
||||||
- ${VOLUMES_PATH}/portainer:/data
|
- ${VOLUMES_PATH}/portainer:/data
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
||||||
expose:
|
ports:
|
||||||
- "9000"
|
- "9000:9000" # to get portainer without proxy too
|
||||||
networks:
|
networks:
|
||||||
- web
|
- web
|
||||||
labels:
|
labels:
|
||||||
|
|
|
@ -5,12 +5,6 @@ services:
|
||||||
traefik:
|
traefik:
|
||||||
image: traefik:v2.4
|
image: traefik:v2.4
|
||||||
restart: always
|
restart: always
|
||||||
command:
|
|
||||||
- "--api.insecure=true"
|
|
||||||
#- "--accesslog=true"
|
|
||||||
- "--providers.docker=true"
|
|
||||||
- "--providers.docker.exposedbydefault=false"
|
|
||||||
- "--entrypoints.web.address=:80"
|
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
|
@ -18,6 +12,8 @@ services:
|
||||||
- web
|
- web
|
||||||
volumes:
|
volumes:
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
|
- "$PWD/traefik.yml:/etc/traefik/traefik.yml"
|
||||||
|
- "$PWD/extraProviders/:/extraProviders:ro"
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.traefik.rule=Host(`traefik.${DOMAIN}`)"
|
- "traefik.http.routers.traefik.rule=Host(`traefik.${DOMAIN}`)"
|
||||||
|
|
10
proxy/extraProviders/pihole.yaml
Normal file
10
proxy/extraProviders/pihole.yaml
Normal 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
23
proxy/traefik.yml
Normal 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'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue