svenax / symfony-docker-template
A dockerized template for MySQL + Nginx + Symfony 5.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:template
This package is auto-updated.
Last update: 2025-04-20 23:05:07 UTC
README
Description
This is a complete stack for running Symfony 5 in Docker containers using docker-compose
.
It consists of three containers:
nginx
- webserver.php
- PHP-FPM with PHP 7.4.db
- MySQL container with a MySQL 8.0 image.
Installation
- Clone this repo or run
composer create-project svenax/symfony-docker-template
- Copy
app/.env.local.template
toapp/.env.local
and update it as needed - Run
make up
- Run
bin/composer install
- Go to http://localhost to check it out
Usage
All code for the project is found in the app
folder. Scripts to interact with the Docker
containers are in the bin
folder. The Makefile
contains convenience scripts for Docker,
backups, and more.