Compare commits

...

1 Commits

Author SHA1 Message Date
Evan Chen fab1102e60 docs: update 2021-10-17 00:01:53 +08:00
2 changed files with 18 additions and 3 deletions

View File

@ -37,14 +37,29 @@ Use "myip [command] --help" for more information about a command.
## Docker
Server:
### Server
```shell
docker pull hub.kumoly.io/tools/myip:latest
docker run --name myip-server -d -p 5080:5080 --restart=always hub.kumoly.io/tools/myip
```
Client:
Or you can use docker-compose.yaml
```yaml
services:
myip:
image: hub.kumoly.io/tools/myip
container_name: myip-server
restart: always
ports:
- 5080:5080
volumes:
- /etc/localtime:/etc/localtime:ro
```
### Client
```shell
docker pull hub.kumoly.io/tools/myip:latest

View File

@ -19,9 +19,9 @@ var ServerCmd = &cobra.Command{
}
var (
// declared in client
// port string
addr string
)