Skip to content

Simple docker containers configuration to run Sympfony application

Notifications You must be signed in to change notification settings

f0ska/symfony-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Docker Symfony environment

This configuration allows you quickly install fresh Symfony installation using Docker with a few simple commands.

Pre-requisites

Make sure you have correctly installed Docker and Docker Compose.

Step 1: Run container

Clone this repository, go into main folder and run:

docker-compose up -d

If you familiar with docker - you know what to do. If not - just learn :)

Step 2: Install Symfony

Run the command, just copy/past:

docker exec -u project -i symfony-test-php symfony new project --version="6.2.*" --webapp

Step 3: Test your installation

http://localhost:8880/

https://localhost:8843/

The end

Congratulations! Now you have installed Symfony with docker.

If you have any problems with it - please do NOT contact me. Never.

Useful information

  • Symfony code is in project folder.
  • Symfony Console : docker exec -u project -i symfony-test-php project/bin/console.
  • Composer : docker exec -u project -i symfony-test-php composer -d project.
  • If you want to use Xdebug and you are using Docker Desktop -> change xdebug.client_host at docker/config/php/override-php.ini

Good luck!

About

Simple docker containers configuration to run Sympfony application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published