docs: add descriptions for docker

This commit is contained in:
kunish 2023-09-01 17:45:40 +08:00
parent 55ac12ee9c
commit 378da096b0
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430

View File

@ -10,6 +10,8 @@ Clash-Meta Dashboard
## Usage ## Usage
### Build locally
Install npm dependencies Install npm dependencies
```shell ```shell
@ -27,3 +29,25 @@ Serve static files
```shell ```shell
pnpm preview pnpm preview
``` ```
### Run inside Docker
docker cli
```shell
docker run -d --restart always -p 80:80 --name metacubexd ghcr.io/metacubex/metacubexd
```
docker-compose.yml
```yaml
version: '3'
services:
metacubexd:
container_name: metacubexd
image: ghcr.io/metacubex/metacubexd
restart: always
ports:
- 80:80
```