All Projects → ger86 → symfony-docker

ger86 / symfony-docker

Licence: GPL-3.0 license
This is a complete stack for running Symfony 6 with PHP-FPM 8.1 and MySQL 8 into Docker containers using docker-compose tool.

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to symfony-docker

symfony-docker
A template for new Symfony applications using Docker: ./install.sh && 🚀
Stars: ✭ 34 (-80.23%)
Mutual labels:  docker-symfony, symfony-docker
Laradock
Full PHP development environment for Docker.
Stars: ✭ 11,064 (+6332.56%)
Mutual labels:  docker-symfony
docker-symfony
Docker Symfony (PHP-FPM - NGINX - MySQL - MailHog - Redis - RabbitMQ)
Stars: ✭ 32 (-81.4%)
Mutual labels:  docker-symfony
docker-symfony
Docker Symfony SOA oriented with NGINX, PHP7-FPM, MySQL, Redis, ELK (Elasticsearch Logstash and Kibana), Varnish and CouchDB
Stars: ✭ 47 (-72.67%)
Mutual labels:  docker-symfony
symfony-docker
🐳 Docker for Symfony application
Stars: ✭ 40 (-76.74%)
Mutual labels:  symfony-docker
opensalt
Standards Alignment Tool
Stars: ✭ 39 (-77.33%)
Mutual labels:  symfony-docker
magento2-fast-vm
Optimal vagrant developer box for Magento2. Folders synced by nfs/rsync. This box includes Magento developer utilities.
Stars: ✭ 89 (-48.26%)
Mutual labels:  mysql8
docker-compose-all-mysql
MySQL and MariaDB docker containers of MySQL v5.5, v5.6, v5.7, v8.0, mariadb v10.0, v10.1, v10.2, v10.3
Stars: ✭ 105 (-38.95%)
Mutual labels:  mysql8
sms
🏫 🎓 一个未使用框架的学生信息管理系统 : 项目概述全面,代码注释详细,逻辑结构清晰,非常适合作为初学 Java web 的同学的第一个练手项目啦 ~
Stars: ✭ 91 (-47.09%)
Mutual labels:  mysql8
Php Ddd Example
🐘🎯 Hexagonal Architecture + DDD + CQRS in PHP using Symfony 5
Stars: ✭ 1,960 (+1039.53%)
Mutual labels:  symfony5
EasyAuditBundle
A Symfony Bundle To Log Selective Events
Stars: ✭ 84 (-51.16%)
Mutual labels:  symfony5
dadata-bundle
Бандл для работы с API ДаДата.
Stars: ✭ 14 (-91.86%)
Mutual labels:  symfony5
umbrella
Umbrella framework
Stars: ✭ 98 (-43.02%)
Mutual labels:  symfony5
Part-DB-symfony
[WIP] A new Part-DB experience based on Symfony framework
Stars: ✭ 120 (-30.23%)
Mutual labels:  symfony5
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.
Stars: ✭ 30 (-82.56%)
Mutual labels:  symfony5
ResidenceCMS
Open Source Property Management System based on Symfony 6
Stars: ✭ 75 (-56.4%)
Mutual labels:  symfony6

🐳 Docker + PHP 8.1 + MySQL + Nginx + Symfony 6.1 Boilerplate

Description

This is a complete stack for running Symfony 6.1 into Docker containers using docker-compose tool with docker-sync library.

It is composed by 4 containers:

  • nginx, acting as the webserver.
  • php, the PHP-FPM container with the 8.0 version of PHP.
  • db which is the MySQL database container with a MySQL 8.0 image.
  • symfony_docker_app_sync to sync files using library docker-sync .

Installation

  1. 😀 Clone this rep.

  2. 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.

  3. Go inside folder ./docker and run docker-sync-stack start to start containers.

  4. 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.

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

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

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

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].