Download the PHP package opctim/symfony-docker without Composer
On this page you can find all versions of the php package opctim/symfony-docker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download opctim/symfony-docker
More information about opctim/symfony-docker
Files in opctim/symfony-docker
Package symfony-docker
Short Description This is a complete stack for running Symfony 6 with PHP-FPM 8.1 and MySQL 8 into Docker containers using docker-compose tool.
License MIT
Homepage https://github.com/opctim/symfony-docker
Informations about the package symfony-docker
🐳 Docker + PHP 8.1 + MariaDB + Nginx + Symfony 6.1 Boilerplate
This project is a fork from ger86/symfony-docker.
Description
This is a complete stack for running Symfony 6.1 in Docker containers using docker-compose
.
It is composed by 3 containers:
nginx
, acting as the webserver.php
, the PHP-FPM container with the 8.1 version of PHP.db
which is the MariaDB database container with a MariaDB 10.8 image.
Project setup
Notice: For this you'll need composer to be installed on your local machine.
If you want to use this project as a base template for your new project, simply initialize your project using:
composer create-project opctim/symfony-docker <your new project directory name>
This will set everything up for you. You can have a look what it does post-install here
Manual Installation
Clone or download this repo instead of running composer create-project.
Infrastructure setup
-
In your project root, run
docker-compose up -d
-
You should work inside the
php
container. -
Inside the
php
container, runcomposer install
to install dependencies from/var/www/symfony
folder. - Use the following value for the DATABASE_URL environment variable:
You can change the database and nginx settings in the .env
file at the root of the project. This file is meant to be tracked by git.