Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker-deploy-v2ray.md #296

Open
wants to merge 1 commit into
base: transifex
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions zh_CN/app/docker-deploy-v2ray.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,26 @@ $ sudo docker run -d --name v2ray -e TZ=Asia/Shanghai -v /etc/v2ray:/etc/v2ray -

另外,如果开启了动态端口,`-p` 标记可以多次使用来绑定多个端口。具体用法是在指令中再加上多个 `-p` 标记即可。

## 使用 Docker Compose 部署
如果你熟悉并了解如何使用Docker Compose, 可使用以下 `compose.yaml`部署:
```
version: '3.8'
services:
v2fly:
image: 'v2fly/v2fly-core:latest'
container_name: v2fly
volumes:
- /your/path/to/config:/etc/v2ray
- /your/path/to/log:/var/log/v2ray
ports:
- 9999:9999
environment:
- TZ=Asia/Shanghai
restart: unless-stopped
command: run -c /etc/v2ray/config.json
```


## 更新策略

### 手动更新
Expand Down