/
Gitea

Gitea

Gitea is a simple Git server.

  • It can be a valid exit strategy from GitLab

 

 

https://about.gitea.com/

 

 

 

Gitea Docker

You can start it with Docker-Compose.

This will bind the web service to

 

marius@code:~/gita_docker$ more docker-compose.yml version: "2" services: server: image: gitea/gitea:1.20-rootless restart: always volumes: - ./data:/var/lib/gitea - ./config:/etc/gitea - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - "3000:3000" - "2222:2222"
  • data will be the copy of your Git

  • config will be your Gitea config, incl. the indexer settings etc.

  • Gitea comes with a new Actions CI equivalent, which mimics the basic functions.

Reverse Proxy / LB

You can map this to an external endpoint (Nginx, HAproxy etc.)

location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Ssl on; proxy_set_header X-Forwarded-Proto https; proxy_set_header Host code.because-security.com; client_max_body_size 0; proxy_http_version 1.1; proxy_ssl_verify off; proxy_redirect off; proxy_pass http://192.168.1.111:3000; } # end of location

 

 

Related content

Gitea as a GitHub mirror
Gitea as a GitHub mirror
More like this
Kubernetes, Istio and Knative (2020)
Kubernetes, Istio and Knative (2020)
More like this
Server setup - Jupyter 4.1 jupyter-lab for Python 3 and Rust (2024)
Server setup - Jupyter 4.1 jupyter-lab for Python 3 and Rust (2024)
More like this
Nginx Reverse Proxy gateway on OpenBSD
Nginx Reverse Proxy gateway on OpenBSD
More like this
Docker explained and illustrated
Docker explained and illustrated
More like this
Nginx Docker-Compose root-less read-only
Nginx Docker-Compose root-less read-only
More like this