Skip to content

This is a complete stack for running Symfony 6 with PHP-FPM 8.2, MariaDB and nginx into Docker containers using docker-compose tool.

Notifications You must be signed in to change notification settings

Systemcheck/dockerized-symfony6

Repository files navigation

Symfony6.3+Docker + PHP 8.2 + MySQL + phpMyAdmin by GitHub Workflow Status

The unofficial Symfony Docker Edition – by @Systemcheck

This is an unofficial, open-source and community-driven boilerplate for Symfony projects, including database support. that run on Docker. It's an attempt of standardizing and making it easier to bootstrap Symfony applications ready for development and production environments. The main tools used are Symfony, Docker and Docker Compose. Other things included are:

  • PHP 8.2 + PHP-FPM
  • Nginx
  • Xdebug
  • Opcache
  • MySQL
  • phpMyAdmin

Table of Contents

Installation

Before anything, you need to make sure you have Docker properly setup in your environment. For that, refer to the official documentation for both Docker and Docker Compose. Also, if you're developing on Mac or Windows – yeah, maybe that's the case –, make sure you have Docker Machine properly setup.

1 download/clone repo

git clone https://github.com/Systemcheck/dockerized-symfony6.git my-project

2 install dependencies (with composer of course)

cd my-project
composer install

3 build and run the containers:

docker-compose up -d --build

Once that's done, you should be able to access the application at //localhost:8080. The database should be migrated after containers are running.

FAQ

Coming soon...

Enjoy!

About

This is a complete stack for running Symfony 6 with PHP-FPM 8.2, MariaDB and nginx into Docker containers using docker-compose tool.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published