1 Commits

Author SHA1 Message Date
fanyang89 46ba73600d docs(installation): refresh Docker Compose example
Update the Watchtower image reference and align the bilingual compose
example with the current setup guidance.
2026-03-28 11:39:11 +08:00
2 changed files with 70 additions and 60 deletions
+11 -6
View File
@@ -42,8 +42,9 @@ This section only introduces installation methods.
```yaml [docker-compose.yml] ```yaml [docker-compose.yml]
services: services:
watchtower: # Used to automatically update easytier image, delete this part if not needed # watchtower automatically updates the EasyTier image; remove this section if not needed
image: containrrr/watchtower watchtower:
image: nickfedor/watchtower
container_name: watchtower container_name: watchtower
restart: unless-stopped restart: unless-stopped
environment: environment:
@@ -52,8 +53,11 @@ This section only introduces installation methods.
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
command: --interval 3600 --cleanup --label-enable command: --interval 3600 --cleanup --label-enable
easytier: easytier:
image: easytier/easytier:latest # Domestic users can use m.daocloud.io/docker.io/easytier/easytier:latest # Users in mainland China can use the DaoCloud mirror
# image: m.daocloud.io/docker.io/easytier/easytier:latest
image: easytier/easytier:latest
hostname: easytier hostname: easytier
container_name: easytier container_name: easytier
labels: labels:
@@ -68,9 +72,10 @@ This section only introduces installation methods.
devices: devices:
- /dev/net/tun:/dev/net/tun - /dev/net/tun:/dev/net/tun
volumes: volumes:
- /etc/easytier:/root - /etc/machine-id:/etc/machine-id:ro
- /etc/machine-id:/etc/machine-id:ro # Map host machine code command: >
command: -d --network-name <user> --network-secret <password> -p tcp://<your-public-ip>:11010 -d --network-name <user> --network-secret <password>
-p tcp://<public-ip-of-other-peer-or-public-node>:11010
``` ```
::: :::
+11 -6
View File
@@ -42,8 +42,9 @@
```yaml [docker-compose.yml] ```yaml [docker-compose.yml]
services: services:
watchtower: # 用于自动更新easytier镜像,若不需要请删除这部分 # watchtower 用于自动更新 EasyTier 镜像,若不需要可以删除此节
image: containrrr/watchtower watchtower:
image: nickfedor/watchtower
container_name: watchtower container_name: watchtower
restart: unless-stopped restart: unless-stopped
environment: environment:
@@ -52,8 +53,11 @@
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
command: --interval 3600 --cleanup --label-enable command: --interval 3600 --cleanup --label-enable
easytier: easytier:
image: easytier/easytier:latest # 国内用户可以使用 m.daocloud.io/docker.io/easytier/easytier:latest # 国内用户可以使用 daocloud.io 镜像
# image: m.daocloud.io/docker.io/easytier/easytier:latest
image: easytier/easytier:latest
hostname: easytier hostname: easytier
container_name: easytier container_name: easytier
labels: labels:
@@ -68,9 +72,10 @@
devices: devices:
- /dev/net/tun:/dev/net/tun - /dev/net/tun:/dev/net/tun
volumes: volumes:
- /etc/easytier:/root - /etc/machine-id:/etc/machine-id:ro
- /etc/machine-id:/etc/machine-id:ro # 映射宿主机机器码 command: >
command: -d --network-name <用户> --network-secret <密码> -p tcp://<您的公网IP>:11010 -d --network-name <用户> --network-secret <密码>
-p tcp://<其他对等节点 / 公共节点的公网 IP>:11010
``` ```
::: :::