Skip to content

Commit

Permalink
Docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
helloxz committed May 1, 2020
1 parent 2c319bc commit e0c671f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM alpine:3.11.6

WORKDIR /root
RUN wget https://raw.githubusercontent.com/helloxz/ccaa/master/docker-ccaa.sh && sh docker-ccaa.sh install
VOLUME /data/ccaaDown
EXPOSE 6080 6081 6800 51413
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@ yum -y install curl

### Docker安装
```bash
docker run -d -p 6080:6080 -p 6081:6081 -p 6800:6800 \
-v /data/ccaaDown:/data/ccaaDown \
helloz/ccaa \
sh -c "dccaa pass xiaoz.me && dccaa start && sleep 3600d"
docker run --name="ccaa" -d -p 6080:6080 -p 6081:6081 -p 6800:6800 -p 51413:51413 \
-v /data/ccaaDown:/data/ccaaDown \
-e PASS="xiaoz.me" \
helloz/ccaa \
sh -c "dccaa pass && dccaa start"
```

* 第一个`/data/ccaaDown`为本地目录,CCAA下载后的内容会保存在此目录,请根据自身情况设置
* `xiaoz.me`为Aria2密钥,运行的时候请修改为自己的密码
* 文件管理默认用户名为`ccaa`,密码为`admin`,登录后可在后台修改


### 常用命令
Expand Down

0 comments on commit e0c671f

Please sign in to comment.