Skip to content

An adapted development environment for Symfony with Docker

Notifications You must be signed in to change notification settings

DevKylian/symfony-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Docker

📌 Install

Inside php-fpm bash

  • composer create-project symfony/skeleton symfony
  • mv /application/symfony/* /application
  • mv /application/symfony/.* /application
  • rm -Rf /application/symfony
  • cd /application

Etapes suivantes facultatives

  • composer require annotations
  • composer require --dev profiler
  • composer require twig
  • composer require orm
  • composer require form
  • composer require form validator
  • composer require maker-bundle

📌 DB Sync

In your .env file (symfony project)

Set this variable in your docker-compose.yml

📌 Docker CLI

  • docker-compose down
  • docker-compose up -d

To build new Dockerfile

  • docker-compose up -d --build
  • docker-compose exec php-fpm bash

Inside php-fpm bash , type this example command

  • php bin/console doc:sch:crea

📌 Database Access

Go to http:https://localhost:8080/

  • User : root
  • Password : root

About

An adapted development environment for Symfony with Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published