-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathdocker-compose.yml
87 lines (74 loc) · 2.78 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: 0-dkturbo
services:
0-dkturbo:
# build: .
# image: dkturbo
image: registry.cn-shenzhen.aliyuncs.com/cp0204/dkturbo:main
container_name: dkturbo
hostname: dkturbo
volumes:
- /etc/docker:/etc/docker
- /opt:/opt
environment:
- MODE=registry
- REGISTRY=auto
network_mode: bridge
restart: unless-stopped
pid: host
privileged: true
deploy:
resources:
reservations:
memory: 8M
x-casaos:
architectures:
- arm
- arm64
- amd64
main: 0-dkturbo
store_app_id: 0-dkturbo
author: Cp0204
category: Utilities
description:
en_us: Docker image accelerator, automatically test the speed and apply the fastest image source. **Non-Chinese users don’t need to use**
zh_cn: Docker 镜像加速器,自动测速和应用最快镜像源。
developer: Cp0204
icon: https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/0-dkturbo/icon.png
tagline:
en_us: Non-Chinese users don’t need to use
zh_cn: Docker 镜像加速器,喂饭到你嘴里
title:
en_us: "dkTurbo"
scheme: https
hostname: github.com
port_map: ''
index: /Cp0204/CasaOS-AppStore-Play
tips:
before_install:
en_us: |
**Non-Chinese users don’t need to use**
zh_cn: |
### 启动 = 自动换源
自动测速和修改镜像源,你可以在容器日志里看工作进度。
### 变灰 = 换源成功
换源后自动停止,并重启系统 Docker 服务,容器可以删除。
[在线源列表](https://gist.github.com/Cp0204/4330ca3b8bc68c4a4a8d57e3982a859b),你可以参与贡献。
## ↓ 高阶使用 ↓
本应用提供两种加速模式,您可以根据网络环境和需求选择合适的模式:
**1. registry 模式 (默认)**
此模式下,应用会从指定的 registry 镜像源下载所需资源,无需配置代理,更加简单便捷。
| 环境变量 | 值 | 说明 |
|---|---|---|
| `MODE` | `registry` | 必须 |
| `REGISTRY` | `auto` (默认) | 加载在线镜像列表,自动选择最快的镜像 |
| | `local` | 使用内置列表,自动选择 |
| | `your.domain.com` | 使用自定义镜像 |
| | `none` | 取消镜像设置 |
**2. proxy 模式**
此模式下,docker pull 流量都会通过代理服务器,适合本地开有代理的用户。
| 环境变量 | 值 | 说明 |
|---|---|---|
| `MODE` | `proxy` | 必须 |
| `HTTP_PROXY` | 例 `172.17.0.1:1080` | HTTP 代理服务器地址 |
| `HTTPS_PROXY` | 例 `172.17.0.1:1080` | HTTPS 代理服务器地址 |
| `NO_PROXY` | `localhost,127.0.0.1,.example.com` | 不经过代理的域名或IP地址 |