Commit 1ff1676f authored by brucedone's avatar brucedone

add docker-compose deploy

parent 532e1656
...@@ -100,6 +100,19 @@ docker run --rm --name py12306 -p 8008:8008 -d -v $(pwd):/config -v py12306:/dat ...@@ -100,6 +100,19 @@ docker run --rm --name py12306 -p 8008:8008 -d -v $(pwd):/config -v py12306:/dat
``` ```
当前目录会多一个 12306.log 的日志文件, `tail -f 12306.log` 当前目录会多一个 12306.log 的日志文件, `tail -f 12306.log`
## Docker-compose 使用
**1. 在py12306目录下创建config目录***
```mkdir config```
**2. 修改配置文件**
在`config`目录下,根据自己的个人配置创建`env.py`文件
**3. 运行docker程序**
在`docker-compose.yml`所在的目录使用命令
```
docker-compose up -d
```
## Web 管理页面 ## Web 管理页面
目前支持用户和任务以及实时日志查看,更多功能后续会不断加入 目前支持用户和任务以及实时日志查看,更多功能后续会不断加入
......
version: "2"
services:
go_home:
build: .
volumes:
- ./config:/config
ports:
- 18008:8008
\ No newline at end of file
-i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
appdirs==1.4.3 appdirs==1.4.3
beautifulsoup4==4.7.0 beautifulsoup4==4.7.0
bs4==0.0.1 bs4==0.0.1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment