Skip to content

silvandre95/symfony_docker_setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup your Symfony application with Docker

What do we need?

  • Install Docker Desktop

What will you have?

  • PHP 8.2
  • MySql 8
  • Nginx Web Server
  • phpMyAdmin 5
  • XDebug

Lets do it step by step:

  • Clone this repository to your machine;

  • Go to php/Dockerfile and change the git email and name;

  • Go to .env and change the variable PROJECT_NAME (or just stay as it is);

  • Now, run the docker-compose.yml

  • Open a bash terminal in the php container that you have just created;

  • Type symfony check:requirements; You must see a green message saying 'Your system is ready to run Symfony projects'.

  • Run this command composer create-project symfony/skeleton .;

  • Open your new Symfony application here http://localhost:8080;

  • Open phpMyAdmin here http://localhost:9005;


Done!

Now you have your Symfony application working!

About

Setup Symfony app with Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published