Skip to content

Commit

Permalink
增加 Docker 使用说明
Browse files Browse the repository at this point in the history
  • Loading branch information
pjialin committed Jan 10, 2019
1 parent e17b48a commit e510de8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,21 @@ python main.py

目前提供了一个单独的子节点配置文件 `env.slave.py.example` 将文件修改为 `env.slave.py`, 通过 `python main -c env.slave.py` 即可快速启动


## Docker 使用
**1. 将配置文件下载到本地**
```bash
docker run --rm pjialin/py12306 cat /config/env.py > env.py
#
curl https://raw.githubusercontent.com/pjialin/py12306/master/env.docker.py.example -o env.py
```

**2. 修改好配置后运行 **
```bash
docker run -d -v $(pwd):/config -v py12306:/data pjialin/py12306
```
当前目录会多一个 12306.log 的日志文件, `tail -f 12306.log`

## 更新
### 19-01-10
* 支持分布式集群
Expand Down

0 comments on commit e510de8

Please sign in to comment.