mkdir -p ~/docker-app/toran-proxy/data
cd ~/docker-app/toran-proxy
;放入如下兩個檔案
docker-compose up -d
docker-compose.yml
version: `2`
services:
toran-proxy:
image: cedvan/toran-proxy
ports:
- "81:80"
volumes:
- ./data/:/data/toran-proxy/
- ./sources.list:/etc/apt/sources.list
environment:
- PHP_TIMEZONE=Asia/Shanghai
- TORAN_HOST=127.0.0.1:81
- TORAN_TOKEN_GITHUB=自己的github token
sources.list
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse