Skip to content

mahiarirani/dbgp-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

PHP X-Debug DBGp Proxy Server Docker Image

This Docker image provides a lightweight and fast PHP X-Debug DBGp Proxy Server based on Alpine Linux. DBGp is a proxy used for debugging PHP applications in multi-user environment. This image is designed to simplify the setup of a DBGp Proxy server in your development environment.

Usage

Docker Pull Command

You can pull the latest version of the image from Docker Hub using the following command:

docker pull mahiarirani/dbgp:latest

Docker Compose

To quickly get started, you can use the provided docker-compose.yml file. Make sure to customize it based on your requirements

version: '3'
services:
  dbgp:
    image: mahiarirani/dbgp:latest
    restart: unless-stopped
    environment:
      IDE_PORT: 9001
      DEBUG_PORT: 9003
    # Add additional configuration as needed

Save this file and run the following command to start the DBGp Proxy server:

docker-compose up -d

Configuration

You can customize the configuration of the DBGp Proxy server by providing environment variables.

  • IDE_PORT: The port of proxy you will set on your IDE to listen. Default is 9001.
  • DEBUG_PORT: The port on which the X-Debug is running server. Default is 9003.

Example:

docker run -d -e IDE_PORT=9001 -e DEBUG_PORT=9003 mahiarirani/dbgp:latest

Building the Image

If you prefer to build the Docker image locally, you can use the provided Dockerfile. Clone the repository and run the following commands:

git clone https://github.com/mahiarirani/dbgp-docker.git
cd dbgp-docker
docker build -t mahiarirani/dbgp:latest .