Skip to content

Commit e0abd49

Browse files
committed
Docker is done
1 parent f9b8156 commit e0abd49

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

75-CreatedDocker/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

0 commit comments

Comments
 (0)