50 lines
777 B
Markdown
50 lines
777 B
Markdown
---
|
|
title: Gitea
|
|
description:
|
|
published: true
|
|
date: 2025-04-27T18:13:15.783Z
|
|
tags:
|
|
editor: markdown
|
|
dateCreated: 2025-04-22T21:40:36.802Z
|
|
---
|
|
|
|
# Gitea
|
|
A selfhosted git instance
|
|
|
|
## Setup
|
|
|
|
The setup is done with docker.
|
|
docker-compose.yml:
|
|
|
|
```
|
|
version: "2"
|
|
|
|
services:
|
|
server:
|
|
image: docker.gitea.com/gitea:1.23.7-rootless
|
|
restart: always
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
volumes:
|
|
- /home/lukas/Drive/gitea/gitea-data:/var/lib/gitea
|
|
- /home/lukas/Drive/gitea-data/gitea-config:/etc/gitea
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "3020:3000"
|
|
- "2222:2222"
|
|
|
|
```
|
|
|
|
Start with:
|
|
|
|
```
|
|
sudo docker-compose up -d
|
|
```
|
|
|
|
Kill with
|
|
|
|
```
|
|
sudo docker-compose down
|
|
``` |