laradocker swoole

2019-04-02sad creeper

laravel swoole

(基于laradocker,本人用的laravelS)

一、

1.修改.env文件中swoole=true,

2.修改docker-compose.yml中增加映射端口

ports:

- "9501:9501"

3.workspace文件下面的Dockerfile文件中增加 EXPOSE 9501 暴露端口

4.停止容器workspace运行 docker-compose stop workspace

5.删除 workspace容器, docker-compose rm workspace

6.重新构建workspace容器,docker-compose build workspace

7.运行workspace容器,docker-compose.exe up -d workspace

8.进入workspace容器,docker-compose.exe exec workspace bash

9.进入项目根目录

10.运行php bin/laravels start

11.地址栏输入127.0.0.1:9501,访问成功

阅读 803 评论