๐๐ป Git ๊ธฐ๋ฐ์ผ๋ก ์์ค์ฝ๋๋ฅผ ๊ฐ๋ณ๊ฒ ๊ด๋ฆฌ ํ ์ ์์ต๋๋ค.
You can manage source code lightweightly using Git.
๐๐ป ์ฌ์ฉ๋ฐฉ๋ฒ์ ๊นํ๋ธ์ ๋์ผํฉ๋๋ค.
The usage is the same as on GitHub.
๐๐ป ์๋์ ๋ชจ๋ ์ค์น๊ณผ์ ์ xubuntu์์ ์งํํ์ต๋๋ค.
All installation steps below were performed on Xubuntu.
๐ ์ค์น / install
โ๏ธ ๋์ปค์ ๋์ปค ์ปดํฌ์ฆ๊ฐ ์๋ค๋ฉด ์ค์นํฉ๋๋ค.
If you do not have Docker and Docker Compose installed, install them.
sudo apt update
sudo apt install docker.io docker-compose-v2 -y
โ๏ธ ํ์ผ์์ฑ
File Creation
mkdir ~/gitea && cd ~/gitea
nano docker-compose.yml
— docker-compose.yaml
version: "3"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- gitea
volumes:
- ./data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "2222:22"
โ๏ธ ๋์ปค ์ปดํฌ์ฆ ์คํ
Run Docker Compose
sudo docker compose up -d
ย โ๏ธ http://localhost:3000 ์ผ๋ก ์ ์
Access http://localhost:3000
— ๊ธฐ๋ณธ ๊ฐ์ผ๋ก ๋๊ณ Gitea ์ค์นํ๊ธฐ ๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.
Leave the settings at their default values โโand click the “Install Gitea” button.

— ํ์๊ฐ์
๊น์ง ์๋ฃํ๋ฉด ๋ค์๊ณผ ๊ฐ์ ํ๋ฉด์ ๋ณผ ์ ์์ต๋๋ค.
Once you complete the sign-up process, you will see a screen like the following.

— ์ฐ์ธก์ +๋ฅผ ๋๋ฌ์ ๋ ํฌ์งํ ๋ฆฌ๋ฅผ ์ถ๊ฐํ๊ณ ์ฝ๋๋ฅผ ์
๋ก๋ํด๋ด
๋๋ค.
Click the “+” on the right to add a repository and upload your code.
touch README.md
git init
git checkout -b main
git add README.md
git commit -m "first commit"
git remote add origin http://192.168.0.101:5080/team-gideon/flm-nextjs.git
git push -u origin main
— ์ฝ๋๊ฐ ์
๋ก๋๋ ํ๋ฉด์ ๋ณผ ์ ์์ต๋๋ค.
You can see the screen where the code has been uploaded.

๐๋์ค์ gitea๋ฅผ ์ด์ ํ๊ฑฐ๋ ๋ฐฑ์
ํ ๊ฒฝ์ฐ ๋์ปค ์ปดํฌ์ฆ yamlํ์ผ์ด ์๋ gitea๋๋ ํ ๋ฆฌ๋ง ๋ฐฑ์
ํด์ ์ฎ๊ธฐ๋ฉด๋ฉ๋๋ค.
If you need to migrate or back up Gitea later, you simply need to back up and move the Gitea directory containing the Docker Compose YAML file.