Merge pull request #6 from RedwindA/patch-1

This commit is contained in:
Sijie.Sun
2024-06-12 13:35:44 +08:00
committed by GitHub
2 changed files with 69 additions and 0 deletions
+34
View File
@@ -19,3 +19,37 @@
cargo install --git https://github.com/EasyTier/EasyTier.git
```
:::
4. **Install via Docker Compose**
::: code-group
```yaml [docker-compose.yml]
version: "3.8"
services:
watchtower: # Used to automatically update the easytier image, delete this part if not needed
command: --interval 3600 --cleanup --label-enable
container_name: watchtower
environment:
- WATCHTOWER_NO_STARTUP_MESSAGE
image: containrrr/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
easytier:
restart: always
labels:
com.centurylinklabs.watchtower.enable: "true"
privileged: true
mem_limit: 0m
container_name: easytier
hostname: easytier
network_mode: host
volumes:
- /etc/easytier:/root
environment:
- TZ=Asia/Shanghai
image: easytier/easytier:latest
command: -i <ip> --network-name <user> --network-secret <password> -e tcp://<server address>:11010 -l <listen address>
```
:::
+35
View File
@@ -19,3 +19,38 @@
cargo install --git https://github.com/EasyTier/EasyTier.git
```
:::
4. **通过Docker Compose安装**
::: code-group
```yaml [docker-compose.yml]
version: "3.8"
services:
watchtower: #用于自动更新easytier镜像,若不需要请删除这部分
command: --interval 3600 --cleanup --label-enable
container_name: watchtower
environment:
- TZ=Asia/Shanghai
- WATCHTOWER_NO_STARTUP_MESSAGE
image: containrrr/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
easytier:
restart: always
labels:
com.centurylinklabs.watchtower.enable: "true"
privileged: true
mem_limit: 0m
container_name: easytier
hostname: easytier
network_mode: host
volumes:
- /etc/easytier:/root
environment:
- TZ=Asia/Shanghai
image: easytier/easytier:latest
command: -i <ip> --network-name <用户> --network-secret <密码> -e tcp://<服务器地址>:11010 -l <监听地址>
```
:::