mirror of
https://github.com/muerwre/muerwre.github.io.git
synced 2025-04-25 02:46:39 +07:00
added whole content
This commit is contained in:
parent
1b5df685cb
commit
8b25e0631a
70 changed files with 5962 additions and 19 deletions
29
content/Linux/Gitea for git hosting.md
Normal file
29
content/Linux/Gitea for git hosting.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
Self-hosted #git repositories with [gitea](https://gitea.io/ru-ru/) and #docker.
|
||||
|
||||
## Setting up with 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:
|
||||
- ./var/lib/gitea:/data
|
||||
- ./etc/gitea:/etc/gitea
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "222:22"
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue