Troubleshoot traefik failure

This commit is contained in:
Joey Hafner 2023-02-15 14:17:23 -08:00
parent fc0d2df371
commit eefe05c118
6 changed files with 38 additions and 11 deletions

View File

@ -3,7 +3,8 @@
# https://gethomepage.dev/en/configs/settings
title: Jafner.net
target: _self
#target: _self
layout:
Jafner.net:
style: row
@ -23,4 +24,4 @@ layout:
Jafner.tools Admin:
style: row
columns: 2

View File

@ -4,7 +4,8 @@ http:
rule: "Host(`traefik.jafner.net`)"
entryPoints: "websecure"
middlewares:
- "traefik-forward-auth@file"
- "lan-only@file"
#- "traefik-forward-auth@file"
service: "api@internal"
tls:
certResolver: "lets-encrypt"
certResolver: "lets-encrypt"

View File

@ -15,7 +15,7 @@ services:
restart: "no"
networks:
web:
ipv4_address: 172.18.0.31
#ipv4_address: 172.18.0.31
monitoring:
ports:
- 80:80
@ -30,4 +30,4 @@ networks:
web:
external: true
monitoring:
external: true
external: true

View File

@ -28,8 +28,9 @@ serversTransport:
providers:
docker:
exposedByDefault: false
endpoint: "tcp://docker-socket-proxy:2375"
#exposedByDefault: true
endpoint: "unix:///var/run/docker.sock"
#endpoint: "tcp://docker-socket-proxy:2375"
watch: true
network: web
file:

View File

@ -19,6 +19,6 @@ docker ps -a
# wish I didn't have to do this
# the exporter boots faster than the plex server, and doesn't seem to retry.
wait 10
docker container restart monitoring_exporter-plex
docker container restart keycloak_forwardauth
#wait 10
#docker container restart monitoring_exporter-plex
#docker container restart keycloak_forwardauth

View File

@ -0,0 +1,24 @@
#!/bin/bash
echo "==========================================="
echo "============= STARTING INFRA =============="
echo "==========================================="
for service in traefik keycloak ddns
do
echo "===== STARTING $service ====="
cd /home/joey/homelab/server/config/$service
docker-compose up -d
done
echo "==========================================="
echo "========== STARTING MAIN SERVERS =========="
echo "==========================================="
for service in /home/joey/homelab/server/config/*
do
echo "===== STARTING $service ====="
cd $service
docker-compose up -d
done