• Stars
    star
    276
  • Rank 149,319 (Top 3 %)
  • Language
    PHP
  • License
    GNU General Publi...
  • Created about 5 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

🐳 Docker + PHP 8.2 + MySQL + Nginx + Symfony 6.2 Boilerplate

Description

This is a complete stack for running Symfony 6.2 into Docker containers using docker-compose tool.

It is composed by 4 containers:

  • nginx, acting as the webserver.
  • php, the PHP-FPM container with the 8.2 version of PHP.
  • db which is the MySQL database container with a MySQL 8.0 image.

Installation

  1. 😀 Clone this repo.

  2. If you are working with Docker Desktop for Mac, ensure you have enabled VirtioFS for your sharing implementation. VirtioFS brings improved I/O performance for operations on bind mounts. Enabling VirtioFS will automatically enable Virtualization framework.

  3. Create the file ./.docker/.env.nginx.local using ./.docker/.env.nginx as template. The value of the variable NGINX_BACKEND_DOMAIN is the server_name used in NGINX.

  4. Go inside folder ./docker and run docker compose up -d to start containers.

  5. You should work inside the php container. This project is configured to work with Remote Container extension for Visual Studio Code, so you could run Reopen in container command after open the project.

  6. Inside the php container, run composer install to install dependencies from /var/www/symfony folder.

  7. Use the following value for the DATABASE_URL environment variable:

DATABASE_URL=mysql://app_user:helloworld@db:3306/app_db?serverVersion=8.0.33

You could change the name, user and password of the database in the env file at the root of the project.

To learn more

I have recorded a Youtube session explaining the different parts of this project. You could see it here:

Boilerplate para Symfony basado en Docker, NGINX y PHP8

More Repositories

1

recetas-javascripteras

Recopilación de recetas sobre Javascript
344
star
2

librarify-back

Librarify. Creando una API con Symfony 5 es un curso completo sobre Symfony 5 en el que cuento cómo desarrollar una API desde cero empleando FOS Rest Bundle.
PHP
36
star
3

openai-chat-gpt-bot

"Bot Conversacional con OpenAI Chat GPT: Crea chatbots inteligentes usando NodeJS, Express y NextJS en este completo tutorial paso a paso."
TypeScript
10
star
4

librarify-back-symfony6

Librarify. Creando una API con Symfony 6 es un curso completo sobre Symfony 6 en el que cuento cómo desarrollar una API desde cero empleando FOS Rest Bundle.
PHP
9
star
5

coronavirus

React en los tiempos del coronavirus es un curso completo sobre React que grabé durante los primeros días del confinamiento para mi canal de Youtube con el objetivo de hacer más amenos esos días encerrados en casa.
JavaScript
8
star
6

react-chartjs-2

Sample project to show the use of the react chart js library
JavaScript
7
star
7

latteandfront-react-authentication-v6

JavaScript
7
star
8

stripe-payment-intents

This is a demo project that shows how to process Payment Intents from Stripe.
PHP
5
star
9

nextjs-auth-server

Project showing auth flow with NextJS using a middleware
TypeScript
5
star
10

react-native-librarify

JavaScript
4
star
11

use-observer-hook

Repository to show the use of the custom hook useObserver that integrates the API Intersection Observer with React.
JavaScript
4
star
12

react-redux-hooks

JavaScript
4
star
13

react-portals-modal

In this project I want to show you how we could use the API Portals of React to create modal windows over our applications.
JavaScript
4
star
14

react-tutorial-i18next

Learn how to integrate the i18next library into an application made with React to add translations
JavaScript
3
star
15

next-auth-client

Project showing auth flow with NextJS inside the client
TypeScript
3
star
16

react-hooks-use-modal

Tutorial for creating the custom hook useModal
JavaScript
3
star
17

learning-react-hooks

TypeScript
3
star
18

learning-react-components

React Components
JavaScript
3
star
19

react-webcam-recorder

TypeScript
3
star
20

latteandfront-final-project-ii

JavaScript
2
star
21

react-query-event-dispatcher

Proyecto en el que muestro cómo integrar React Query con un Event Dispatcher para invalidar la caché
TypeScript
2
star
22

react-tron

Tron game created with react
JavaScript
2
star
23

curso-react-lefebvre

JavaScript
2
star
24

curso-lefebvre-2

JavaScript
2
star
25

react-formik

In this project I want to show you how we could use the library Formik to handle our forms without tears.
JavaScript
2
star
26

react-portals-window

In this project I want to show you how we could use the API Portals of React to handle the state of a popup window opended from a component.
JavaScript
2
star
27

react-prueba-tecnica

JavaScript
1
star
28

typescript-event-dispatcher

TypeScript
1
star
29

nextjs-google-login

Demo repository to show how to implement Google login in NextJs
TypeScript
1
star
30

react-query-lite

JavaScript
1
star
31

symfony-users

Example project showing different features of Symfony to work with users
PHP
1
star
32

curso-lefebvre-react-router

JavaScript
1
star
33

latte-and-native-sqlite

JavaScript
1
star
34

ger86

1
star
35

latteandfront-proyecto-final

JavaScript
1
star
36

webpackencore-babel

Symfony project with Webpack Encore to show how we could configure Babel to transpile node_modules
CSS
1
star