From eefe05c118e30245ae65a3c9c0df296778dc829e Mon Sep 17 00:00:00 2001 From: Jafner Date: Wed, 15 Feb 2023 14:17:23 -0800 Subject: [PATCH] Troubleshoot traefik failure --- server/config/homepage/settings.yaml | 5 ++-- server/config/traefik/config/traefik_api.yaml | 5 ++-- server/config/traefik/docker-compose.yml | 4 ++-- server/config/traefik/traefik.yaml | 5 ++-- server/scripts/compose_up.sh | 6 ++--- server/scripts/compose_up_new.sh | 24 +++++++++++++++++++ 6 files changed, 38 insertions(+), 11 deletions(-) create mode 100755 server/scripts/compose_up_new.sh diff --git a/server/config/homepage/settings.yaml b/server/config/homepage/settings.yaml index b135087..c4e274c 100644 --- a/server/config/homepage/settings.yaml +++ b/server/config/homepage/settings.yaml @@ -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 - \ No newline at end of file + diff --git a/server/config/traefik/config/traefik_api.yaml b/server/config/traefik/config/traefik_api.yaml index 1523ae8..d0c5dfd 100644 --- a/server/config/traefik/config/traefik_api.yaml +++ b/server/config/traefik/config/traefik_api.yaml @@ -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" \ No newline at end of file + certResolver: "lets-encrypt" diff --git a/server/config/traefik/docker-compose.yml b/server/config/traefik/docker-compose.yml index 777cf85..6e15605 100644 --- a/server/config/traefik/docker-compose.yml +++ b/server/config/traefik/docker-compose.yml @@ -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 \ No newline at end of file + external: true diff --git a/server/config/traefik/traefik.yaml b/server/config/traefik/traefik.yaml index 2940afe..126cb78 100644 --- a/server/config/traefik/traefik.yaml +++ b/server/config/traefik/traefik.yaml @@ -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: diff --git a/server/scripts/compose_up.sh b/server/scripts/compose_up.sh index cabacd3..fa3d6f9 100755 --- a/server/scripts/compose_up.sh +++ b/server/scripts/compose_up.sh @@ -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 \ No newline at end of file +#wait 10 +#docker container restart monitoring_exporter-plex +#docker container restart keycloak_forwardauth diff --git a/server/scripts/compose_up_new.sh b/server/scripts/compose_up_new.sh new file mode 100755 index 0000000..2c09139 --- /dev/null +++ b/server/scripts/compose_up_new.sh @@ -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 +