Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unsimplesistemista/symfony-demo-app
https://github.com/unsimplesistemista/symfony-demo-app
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/unsimplesistemista/symfony-demo-app
- Owner: unsimplesistemista
- Created: 2019-03-02T18:05:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-03-02T19:14:31.000Z (over 5 years ago)
- Last Synced: 2023-12-07T14:24:08.375Z (12 months ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# symfony-demo-app
## Instructions:
1. You have to complete the **Dockerfile**, with:
* Install git
* Install symfony2. You have to complete the **docker-compose.yml** file, with the symfony service declared as follows:
* Image stucom/php
* Volumes defined
* Ports defined3. You have to compile the **stucom/php** image with the following command:
`docker-compose build`
4. Once you've completed the previous steps, you'll be able to create your demo application with the following command:``docker run --rm -v `pwd`/src:/var/www -w /var/www stucom/php symfony new --demo symfony-demo-app``
5. Run the following commands to start your new demo application:
`docker-compose up -d`
`docker-compose exec symfony chown -R www-data:www-data .`Now you can go to **http://localhost** in your browser, you have to see the symfony demo page.
## Bonus:
Modify the Dockerfile and docker-compose.yml files to simulate a deploy to production environment.Tip: the source code should not be a volume, it has to be part of the Docker image.