下面不用看
sudo APP_USER=example@gmail.com APP_PASS='password' PROXY=socks5://username@password@proxyhost:port node app.js
将代理地址保存到 proxies.txt
文件中,格式为:
socks5://username:password@proxyhost:port
然后启动容器:
docker run -d \
-e APP_USER=user@mail.com \
-e APP_PASS=password \
-v ./proxies.txt:/app/proxies.txt \
overtrue/gradient-bot
注意:proxies.txt
路径请替换为正确的路径,或者先 cd
到 proxies.txt
所在目录再执行 docker run 命令。
docker ps
此命令会列出所有容器,找到对应的容器 ID("CONTAINER ID" 列对应的值),然后执行:
docker exec -it <container_id> pm2 logs
docker rm -f <container_id>
Feel free to contribute to this project by creating a pull request.
if you want to support me, you can donate to my address:
TMwJhT5iCsQAfmRRKmAfasAXRaUhPWTSCE
0xa2f5b8d9689d20d452c5340745a9a2c0104c40de
HCbbrqD9Xvfqx7nWjNPaejYDtXFp4iY8PT7F4i8PpE5K
UQBD-ms1jA9cmoo8O39BXI6jqh8zwRSoBMUAl4yjEPKD6ata