File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ # Инструкция по разворачиванию Forgejo с использованием Docker
2+ # чтобы запустить в Docker контейнере Forgejo необходимо выполнить команду:
3+ docker-compose up -d
4+
5+ # На localhost:3000 открывается Forgejo, необходимо пройти регистрацию создать репозиторий
6+
7+ # Для подключения простейшего клиента к данному localhost необходимо передать ему ссылку на репозиторий и API токен
8+ # Получение API токена для подключения клиента:
9+
10+ curl -H "Content-Type: application/json" -d '{"name":"test"}' -u username: password http://forgejo.your.host/api/v1/users/ <username >/tokens
Original file line number Diff line number Diff line change 1+ version : ' 3'
2+
3+ services :
4+ forgejo :
5+ image : codeberg.org/forgejo/forgejo:1.18
6+ container_name : forgejo
7+ environment :
8+ - USER_UID=1000
9+ - USER_GID=1000
10+ volumes :
11+ - ./forgejo-data:/data
12+ ports :
13+ - " 3000:3000"
14+ - " 2222:22"
15+ restart : unless-stopped
You can’t perform that action at this time.
0 commit comments