Update Containers/Docker/Docker Compose/Gitea.md

This commit is contained in:
Nicole Rappe
2024-01-11 22:12:50 -07:00
parent 7c54321304
commit d6c0d2824d

View File

@ -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
```