Update Containers/Docker/Docker Compose/Gitea.md
This commit is contained in:
@ -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.
|
**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"
|
```jsx title="docker-compose.yml"
|
||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
@ -56,3 +58,24 @@ networks:
|
|||||||
```jsx title=".env"
|
```jsx title=".env"
|
||||||
POSTGRES_PASSWORD=SomethingSecure
|
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
|
||||||
|
```
|
Reference in New Issue
Block a user