-
-
Notifications
You must be signed in to change notification settings - Fork 0
Symfony guide
Jose Gracia Berenguer edited this page Apr 9, 2020
·
3 revisions
-
Clone the repository:
git clone https://github.com/Josee9988/Docker-Skeleton-LEMP.git
-
Go to the cloned project directory:
cd Docker-Skeleton-LEMP
- Modify the .env environment variables as you please.
-
Build the container
docker-compose up -d
- Test the container is working
- Create the Symfony application
Symfony official installation guide
```bash
symfony new mySymfonyProjectName
```
-
Move the Symfony files to the main directory (as the Symfony app would have been created inside a directory and we want these files in the actual one, not inside a folder)
cp mySymfonyProjectName/. . -R
- Copy the .env configuration in the new .env file.
- Test to run any command inside the container.
docker exec -it myImportantSymfonyAppName-phpfpm bash # the name depends on the .env variable 'APPLICATION_NAME'
- Enjoy
This wiki is entirely made by Josee9988 to help the community!