Update readme
This commit is contained in:
parent
1c7a3f36b7
commit
ab5e2ad9b4
@ -29,7 +29,11 @@ sudo apt-get install redis-server -y
|
||||
|
||||
## Docker
|
||||
|
||||
现在你可以无需安装其他服务,使用 [docker-compose](https://docs.docker.com/compose/install/) 部署本项目。注:请自行修改 .env 中参数。
|
||||
现在你可以无需安装其他服务,使用 docker 或 [docker-compose](https://docs.docker.com/compose/install/) 部署本项目。注:请自行修改 .env 中参数。
|
||||
|
||||
```
|
||||
docker run -d --restart always --name myurls careywong/myurls:latest -domain example.com -port 8002 -conn 127.0.0.1:6379 -passwd '' -ttl 90
|
||||
```
|
||||
|
||||
```shell script
|
||||
git clone https://github.com/CareyWang/MyUrls.git MyUrls
|
||||
@ -66,6 +70,8 @@ Usage of ./build/linux-amd64-myurls.service:
|
||||
Redis连接,格式: host:port (default "127.0.0.1:6379")
|
||||
-domain string
|
||||
短链接域名,必填项
|
||||
-passwd string
|
||||
Redis连接密码
|
||||
-port int
|
||||
服务端口 (default 8002)
|
||||
-ttl int
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user