vault backup: 2024-03-08 02:27:06

This commit is contained in:
2024-03-08 02:27:06 +08:00
parent 080d8e989f
commit da7e110173
2 changed files with 59 additions and 1 deletions

View File

@@ -2,10 +2,11 @@
aliases:
atlas: "[[Atlas/Card|Card]]"
created: 2024-03-06 18:50:29
modified:
modified: 2024-03-08 02:26:06
tags:
title: OpenWrt Docker
---
# Protainer
```shell
@@ -123,3 +124,31 @@ docker run -d \
halcyonazure/lsky-pro-docker:latest
```
# Gitea
```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:
- /mnt/usb3-1/gitea:/data
ports:
- "3333:3000"
- "222:22"
```
重新部署 Docker 后,将仓库拷贝进对应挂载目录,在 Portainer 里进入 Console 输入 `chown -R git:git /data` 赋予 git 用户权限,再转到 Gitea 的网页端管理后台执行【重新同步所有仓库的 pre-receive、update 和 post-receive 钩子】,随后到【代码仓库-未收录仓库】中单击搜索将仓库添加进 Gitea 即可