Gitea is a simple Git server.
It can be a valid exit strategy from GitLab
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 Gitconfig
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