Sign inSign up

kk580kk/php52-xdebug

By kk580kk

•Updated over 10 years ago

简单快速的docker开发环境搭建

Image
0

1.5K

kk580kk/php52-xdebug repository overview

快速搭建5.2版本的php开发环境,包括xdebug方便调试

docker 环境搭建,首先cd到项目根目录,然后按步骤执行下面命令 docker run --name=some-wwwroot -v "$PWD":/var/www/html -d busybox echo wwwroot docker run --name=some-mysql -d -e MYSQL_ROOT_PASSWORD=q1w2e3r4 -p 3306:3306 mysql

docker run --name some-php --volumes-from wallife-wwwroot --link wallife-mysql:mysql -d kk580kk/php52-xdebug docker run --name=some-nginx --volumes-from wallife-wwwroot --link wallife-php:php -p 8082:80 -d kk580kk/nginx

默认调试环境是通过php去请求192.168.100.1(默认主机ip)来实现debug

compose文件

services:
  qcsx-php:
    volumes:
    - ../../source:/var/www/html
    links:
    - qcsx-mysql:mysql
    image: kk580kk/php52-xdebug
  qcsx-nginx:
    volumes:
    - ../../source:/var/www/html
    ports:
    - "80:80"
    links:
    - qcsx-php:php
    image: tommylau/nginx

Tag summary

Content type

Image

Digest

Size

121.9 MB

Last updated

over 10 years ago

docker pull kk580kk/php52-xdebug