diff --git a/README.md b/README.md index 0c932f4a9..08f5eb470 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,11 @@ It is a self-hosted monitoring tool like "Uptime Robot". ### Docker ```bash -docker run -d --restart=always -p 3001:3001 louislam/uptime-kuma +# Create a volume +docker volume create uptime-kuma + +# Start the container +docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma ``` Browse to http://localhost:3001 after started. @@ -27,7 +31,7 @@ Browse to http://localhost:3001 after started. Change Port and Volume ```bash -docker run -d --restart=always -p :3001 -v :/app/data louislam/uptime-kuma +docker run -d --restart=always -p :3001 -v :/app/data --name uptime-kuma louislam/uptime-kuma ``` ### Without Docker