update README.md

added run shell.
This commit is contained in:
jerry
2018-04-28 17:05:37 +08:00
parent e1abed776c
commit 4f8c9ae899
2 changed files with 100 additions and 1 deletions

13
run.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
docker run --rm \
--add-host localhost:$(ifconfig eth0 |grep "inet addr"| cut -f 2 -d ":"|cut -f 1 -d " ") -ti \
--name cqhttp \
-v $(pwd)/coolq:/home/user/coolq \
-p 9000:9000 \
-p 10000:10000 \
-e CQHTTP_USE_WS=yes \
-e CQHTTP_WS_HOST=0.0.0.0 \
-e CQHTTP_WS_PORT=10000 \
-e CQHTTP_USE_WS_REVERSE=yes \
-e CQHTTP_WS_REVERSE_EVENT_URL=ws://localhost:20000/ \
richardchien/cqhttp:latest