mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-26 19:24:12 +08:00
docs: add descriptions for docker
This commit is contained in:
parent
55ac12ee9c
commit
378da096b0
24
README.md
24
README.md
@ -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
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user