vault backup: 2024-03-08 17:51:20
This commit is contained in:
@@ -152,3 +152,57 @@ services:
|
|||||||
|
|
||||||
重新部署 Docker 后,将仓库拷贝进对应挂载目录,在 Portainer 里进入 Console 输入 `chown -R git:git /data` 赋予 git 用户权限,再转到 Gitea 的网页端管理后台执行【重新同步所有仓库的 pre-receive、update 和 post-receive 钩子】,随后到【代码仓库-未收录仓库】中单击搜索将仓库添加进 Gitea 即可
|
重新部署 Docker 后,将仓库拷贝进对应挂载目录,在 Portainer 里进入 Console 输入 `chown -R git:git /data` 赋予 git 用户权限,再转到 Gitea 的网页端管理后台执行【重新同步所有仓库的 pre-receive、update 和 post-receive 钩子】,随后到【代码仓库-未收录仓库】中单击搜索将仓库添加进 Gitea 即可
|
||||||
|
|
||||||
|
# Rsshub
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
version: '3.9'
|
||||||
|
services:
|
||||||
|
rsshub:
|
||||||
|
# two ways to enable puppeteer:
|
||||||
|
# * comment out marked lines, then use this image instead: diygod/rsshub:chromium-bundled
|
||||||
|
# * (consumes more disk space and memory) leave everything unchanged
|
||||||
|
image: diygod/rsshub
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- '1200:1200'
|
||||||
|
environment:
|
||||||
|
NODE_ENV: production
|
||||||
|
CACHE_TYPE: redis
|
||||||
|
REDIS_URL: 'redis://redis:6379/'
|
||||||
|
PUPPETEER_WS_ENDPOINT: 'ws://browserless:3000' # marked
|
||||||
|
PROXY_URI: 'socks5h://warp-socks:9091'
|
||||||
|
depends_on:
|
||||||
|
- redis
|
||||||
|
- browserless # marked
|
||||||
|
browserless: # marked
|
||||||
|
image: browserless/chrome # marked
|
||||||
|
restart: always # marked
|
||||||
|
ulimits: # marked
|
||||||
|
core: # marked
|
||||||
|
hard: 0 # marked
|
||||||
|
soft: 0 # marked
|
||||||
|
redis:
|
||||||
|
image: redis:alpine
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- /mnt/usb3-1/rsshub/redis-data:/data
|
||||||
|
warp-socks:
|
||||||
|
image: monius/docker-warp-socks:latest
|
||||||
|
privileged: true
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- /mnt/usb3-1/rsshub/modules:/lib/modules
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
- SYS_MODULE
|
||||||
|
sysctls:
|
||||||
|
net.ipv6.conf.all.disable_ipv6: 0
|
||||||
|
net.ipv4.conf.all.src_valid_mark: 1
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "https://www.cloudflare.com/cdn-cgi/trace"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
|
volumes:
|
||||||
|
redis-data:
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user