From fafdf2283920517f2415851e8da3798625a40414 Mon Sep 17 00:00:00 2001 From: mr-forust Date: Thu, 13 Nov 2025 15:05:43 +0100 Subject: [PATCH] Excluded template-services from git Traefik support for gitea --- .gitignore | 4 +++- gitea-docker-compose.yaml | 5 ++++- traefik/dynamic/services.yml | 43 +++++++++++++++++++++++++++--------- 3 files changed, 40 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index ff08b64..59b6367 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,6 @@ dockmon/dockmon_data/ portainer_data/* adguardhome/* .python-version -gitea/* \ No newline at end of file +gitea/* +traefik/dynamic/.services gigaforust copy.yml +traefik/dynamic/.services workstation.yml diff --git a/gitea-docker-compose.yaml b/gitea-docker-compose.yaml index 50142e9..63f2601 100644 --- a/gitea-docker-compose.yaml +++ b/gitea-docker-compose.yaml @@ -17,8 +17,11 @@ services: - ./gitea:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro + labels: + - traefik.enable=true + - traefik.docker.network=traefik-proxy ports: - - "3000:3000" + # - "3000:3000" - "222:22" depends_on: - db diff --git a/traefik/dynamic/services.yml b/traefik/dynamic/services.yml index 9d842b4..c9b190f 100644 --- a/traefik/dynamic/services.yml +++ b/traefik/dynamic/services.yml @@ -2,7 +2,7 @@ http: routers: # Traefik Dashboard traefik-dashboard: - rule: "Host(`traefik.workstation`)" + rule: "Host(`traefik.gigaforust`)" entryPoints: - websecure service: api@internal @@ -10,7 +10,7 @@ http: # Portainer portainer: - rule: "Host(`portainer.workstation`)" + rule: "Host(`portainer.gigaforust`)" entryPoints: - websecure service: portainer @@ -18,7 +18,7 @@ http: # AdGuard Home adguard-redirect: - rule: "Host(`adguard.workstation`)" + rule: "Host(`adguard.gigaforust`)" entryPoints: - web middlewares: @@ -26,7 +26,7 @@ http: service: adguard adguard-secure: - rule: "Host(`adguard.workstation`)" + rule: "Host(`adguard.gigaforust`)" entryPoints: - websecure service: adguard @@ -34,7 +34,7 @@ http: # Nextcloud AIO Interface nextcloud-aio: - rule: "Host(`nextcloud-aio.workstation`)" + rule: "Host(`nextcloud-aio.gigaforust`)" entryPoints: - websecure service: nextcloud-aio @@ -42,7 +42,7 @@ http: # Nextcloud Main nextcloud: - rule: "Host(`nextcloud.workstation`)" + rule: "Host(`nextcloud.gigaforust`)" entrypoints: - websecure service: nextcloud @@ -52,7 +52,7 @@ http: # Dockmon dockmon: - rule: "Host(`dockmon.workstation`)" + rule: "Host(`dockmon.gigaforust`)" entryPoints: - websecure service: dockmon @@ -60,7 +60,7 @@ http: # Glance glance: - rule: "Host(`glance.workstation`)" + rule: "Host(`glance.gigaforust`)" entryPoints: - websecure service: glance @@ -68,7 +68,7 @@ http: # Watercrawl (edu_master) watercrawl: - rule: "Host(`watercrawl.workstation`)" + rule: "Host(`watercrawl.gigaforust`)" entryPoints: - websecure service: watercrawl @@ -76,11 +76,28 @@ http: # N8N n8n: - rule: "Host(`n8n.workstation`)" + rule: "Host(`n8n.gigaforust`)" entryPoints: - websecure service: n8n tls: {} + + # Gitea Redirect + gitea-redirect: + rule: "Host(`gitea.gigaforust`)" + entryPoints: + - web + middlewares: + - redirect-https + service: gitea + + # Gitea + gitea: + rule: "Host(`gitea.gigaforust`)" + entryPoints: + - websecure + service: gitea + tls: {} services: # Portainer @@ -130,6 +147,12 @@ http: loadBalancer: servers: - url: "http://n8n:5678" + + # Gitea + gitea: + loadBalancer: + servers: + - url: "http://server:3000" middlewares: # HTTPS Redirect