Skip to content

A Docker package with Symfony + PHP FPM + Nginx + PostgreSQL + RabbitMQ + Redis

License

Notifications You must be signed in to change notification settings

carferdas/symfony-docker

Repository files navigation

Symfony 7 + Nginx + PHP 8.4 FPM + PostgreSQL 14 + RabbitMQ + Redis Starter Kit

This repository provides a starter kit for setting up a development environment with Symfony, Nginx, PostgreSQL, RabbitMQ, Redis, and Xdebug, using Alpine Linux. This kit is designed to be lightweight and efficient, making it ideal for developing modern web applications.

Features

  • Symfony 7: PHP framework for web development.
  • PHP 8.4 FPM: The language with FPM.
  • Nginx: High-performance web server.
  • PostgreSQL 14: Relational database management system.
  • RabbitMQ: Message broker for handling task queues.
  • Redis: In-memory caching and database.
  • Xdebug: Debugging tool for PHP.
  • Alpine Linux: Lightweight and secure Linux distribution based on musl libc and busybox.

Prerequisites

Quick Setup

  1. Clone the repository:

    git clone https://github.com/carferdas/symfony-docker.git
    cd symfony-docker
  2. Build and start the containers:

docker-compose up -d --build
  1. Access the application: Open your browser and visit http://localhost to see the Symfony application running.

Xdebug Configuration

Xdebug is pre-configured to work with PHP in this kit. To debug your application, ensure your IDE is set up to listen on port 9003. Here's an example configuration for PHPStorm:

Open PHPStorm and go to File > Settings > Languages & Frameworks > PHP > Debug.

Ensure the listening port is set to 9003.

Set up a server in File > Settings > Languages & Frameworks > PHP > Servers with the name localhost and the appropriate path mapping.

Contributing

Contributions are welcome! If you have any suggestions or find any issues, please open an issue or submit a pull request.

About

A Docker package with Symfony + PHP FPM + Nginx + PostgreSQL + RabbitMQ + Redis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published