加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 818 Bytes
一键复制 编辑 原始数据 按行查看 历史
xiaobaiskill 提交于 2020-03-17 15:05 . update docker-compose.yml.
version: "3"
services:
mysql:
image: "mysql:5.7.20"
environment:
- MYSQL_ROOT_PASSWORD=mysqlroot
- MYSQL_DATABASE=admin
- TZ=Asia/Shanghai
restart: always
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/conf/my.cnf:/etc/my.cnf
- ./mysql/init:/docker-entrypoint-initdb.d/
ports:
- "3307:3306"
php-swoole:
build:
context: .
restart: always
container_name: php_swoole
depends_on:
- mysql
ports:
- 9503:9503
volumes:
- "./log:/home/www/Log"
# css 文件 网页不加载. content-type:text/plian
# nginx:
# image: nginx
# depends_on:
# - php-swoole
# volumes:
# - "./App/Static:/Static"
# - "./nginx/nginx.conf:/etc/nginx/nginx.conf"
# ports:
# - "8081:80"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化