Skip to content

Phaired/docker-symfony-nginx-pgsql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-symfony-nginx-pgsql

Installation

You can check the .env file to rename compose project

Symfony Project

  1. First run docker-compose up

  2. Get the container id using docker ps
    and get the id of the container named COMPOSE_PROJECT_NAME _php (only the first few char are needed)

  3. Then you connect to the php container using and docker exec -it <container_id> bash and do symfony new . --webapp

  4. Go to http://localhost :)

Classic PHP Project

  1. First run docker-compose up

  2. Then you can create a /api/public/index.php and start your project

Informations

Composer and symfony CLI are installed on the PHP container

TODO

  • /