From d6c0d2824d5b198eadf7eac5d4500db7a3898c54 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Thu, 11 Jan 2024 22:12:50 -0700 Subject: [PATCH] Update Containers/Docker/Docker Compose/Gitea.md --- Containers/Docker/Docker Compose/Gitea.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Containers/Docker/Docker Compose/Gitea.md b/Containers/Docker/Docker Compose/Gitea.md index 33a3f22..cdca918 100644 --- a/Containers/Docker/Docker Compose/Gitea.md +++ b/Containers/Docker/Docker Compose/Gitea.md @@ -1,5 +1,7 @@ **Purpose**: Gitea is a painless self-hosted all-in-one software development service, it includes Git hosting, code review, team collaboration, package registry and CI/CD. It is similar to GitHub, Bitbucket and GitLab. Gitea was forked from Gogs originally and almost all the code has been changed. + +## Docker Configuration ```jsx title="docker-compose.yml" version: "3" @@ -56,3 +58,24 @@ networks: ```jsx title=".env" POSTGRES_PASSWORD=SomethingSecure ``` + +## Traefik Reverse Proxy Configuration +If the container does not run on the same host as Traefik, you will need to manually add configuration to Traefik's dynamic config file, outlined below. +``` yaml +http: + routers: + cyberstrawberry-gitea: + entryPoints: + - websecure + tls: + certResolver: myresolver + service: cyberstrawberry-gitea + rule: Host(`git.bunny-lab.io`) + + services: + cyberstrawberry-gitea: + loadBalancer: + servers: + - url: http://192.168.5.70:3000 + passHostHeader: true +``` \ No newline at end of file