docs: 当开发环境使用

This commit is contained in:
kriss 2022-05-25 18:14:54 +08:00
parent 4feed69c3d
commit 6b47842df2

30
README.md Normal file
View File

@ -0,0 +1,30 @@
# webman docker
# 当开发环境使用
启动镜像
```bash
docker run --rm --name webman \
-v /local/workspace:/app \
-p 8787:8787 \
-it \
--privileged -u root \
--entrypoint /bin/sh \
kriss/docker-webman
```
创建项目
```bash
composer create-project workerman/webman
```
启动项目
```bash
cd webman
php start.php start
```
访问 http://localhost:8787 即可