Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mahiarirani/dbgp-docker
PHP X-Debug DBGp Proxy Server Docker Image
https://github.com/mahiarirani/dbgp-docker
dbgp docker-image dockerfile php x-debug xdebug
Last synced: about 2 months ago
JSON representation
PHP X-Debug DBGp Proxy Server Docker Image
- Host: GitHub
- URL: https://github.com/mahiarirani/dbgp-docker
- Owner: mahiarirani
- Created: 2023-12-06T09:40:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-06T09:47:10.000Z (about 1 year ago)
- Last Synced: 2023-12-06T11:08:28.811Z (about 1 year ago)
- Topics: dbgp, docker-image, dockerfile, php, x-debug, xdebug
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/mahiarirani/dbgp
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
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
```yaml
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:
```bash
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:
```bash
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:
```bash
git clone https://github.com/mahiarirani/dbgp-docker.git
cd dbgp-docker
docker build -t mahiarirani/dbgp:latest .
```