From 7d4fadf5d6adaed04d9a7952ae80cbdf296525e7 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Sat, 16 Oct 2021 23:59:13 +0800 Subject: [PATCH] docs: update --- README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1714486..93d212b 100644 --- a/README.md +++ b/README.md @@ -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