mirror of
https://github.com/yanhao98/renovate-example.git
synced 2025-07-13 08:40:47 +08:00
重构 README.md,提取公共服务和环境配置为 YAML 锚点
This commit is contained in:
38
README.md
38
README.md
@ -29,26 +29,30 @@ name: renovate
|
|||||||
volumes:
|
volumes:
|
||||||
tmp:
|
tmp:
|
||||||
driver: local
|
driver: local
|
||||||
|
x-common-services: &common-services
|
||||||
|
pull_policy: always
|
||||||
|
network_mode: bridge
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- tmp:/tmp
|
||||||
|
image: renovate/renovate
|
||||||
|
entrypoint: /bin/bash
|
||||||
|
command: -c "while true; do docker-entrypoint.sh renovate; sleep 1h; done"
|
||||||
|
x-common-env: &common-env
|
||||||
|
LOG_LEVEL: debug
|
||||||
|
TZ: Asia/Shanghai
|
||||||
|
RENOVATE_AUTODISCOVER: true
|
||||||
|
RENOVATE_PLATFORM: gitea
|
||||||
|
RENOVATE_INCLUDE_MIRRORS: true
|
||||||
|
GITHUB_COM_TOKEN: ❗️
|
||||||
services:
|
services:
|
||||||
|
# docker exec -it renovate-git.1-h.cc-1 docker-entrypoint.sh renovate
|
||||||
git.1-h.cc:
|
git.1-h.cc:
|
||||||
# docker exec -it renovate-git.1-h.cc-1 docker-entrypoint.sh renovate
|
<<: *common-services
|
||||||
pull_policy: always
|
|
||||||
restart: always
|
|
||||||
environment:
|
environment:
|
||||||
- LOG_LEVEL=debug
|
<<: *common-env
|
||||||
- TZ=Asia/Shanghai
|
RENOVATE_ENDPOINT: ❗️https://git.1-h.cc
|
||||||
- RENOVATE_AUTODISCOVER=true
|
RENOVATE_TOKEN: ❗️
|
||||||
- RENOVATE_PLATFORM=gitea
|
|
||||||
- RENOVATE_INCLUDE_MIRRORS=true
|
|
||||||
#
|
|
||||||
- RENOVATE_ENDPOINT=❗️https://git.1-h.cc
|
|
||||||
- RENOVATE_TOKEN=❗️
|
|
||||||
- GITHUB_COM_TOKEN=❗️
|
|
||||||
volumes:
|
|
||||||
- tmp:/tmp
|
|
||||||
image: renovate/renovate:38
|
|
||||||
entrypoint: /bin/bash
|
|
||||||
command: -c "while true; do docker-entrypoint.sh renovate; sleep 8h; done"
|
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user