This project provides a Docker-based development environment for PHP applications. It allows developers to quickly set up and run Symfony projects across different machines with minimal configuration, requiring only Docker to be installed.
The environment includes:
- PHP 8.2 with Apache
- MySQL 8.0
- PostgreSQL
- Xdebug 3.4.5
- Symfony CLI
The fastest way to start the environment:
- Clone this repository
- Run
make startfrom the project root directory
This will set up and start all required containers automatically.
- Docker Engine 20.10 or later
- Docker Compose V2
- Make
- Git (optional, for version control)
- Clone this repository to your local machine
- Navigate to the
.docker/docker-composedirectory - Create a
.envfile from.env.example(if needed) and adjust UID/GID values to match your host machine's values (runid -ufor UID andid -gfor GID) - Run
make startto start the environment
The environment will be available at http://localhost:8080
Common commands:
- Start environment:
make start - Stop environment:
make down - Access PHP container:
make bash - Check container logs:
make logs
Database connections:
- MySQL: localhost:3306 (user: app, password: app)
- PostgreSQL: localhost:5432 (user: app, password: app)
This project is licensed under the [MIT License].