-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Sandbox based on Docker Compose and official nginx
, mysql
and php
#802
Conversation
@@ -10,3 +10,5 @@ | |||
/vendor/ | |||
/bin/ | |||
/composer.phar | |||
.idea |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove these as these are dev specific
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cordoval done.
@alexanderilyin The code looks good but I think this should be placed in a separate repository. You could create a cookbook in the symfony/symfony-docs repo instead. |
does this work with boot2docker? |
@cordoval I think it’s specifically created to work with boot2docker. |
I agree with @hacfi here. The vagrant setup has already been rejected from the symfony-standard repo in the past |
@alexanderilyin let this not discourage you but work on a repo that has the docker files and share it in this thread, would rock to play with it. This in fact would be a lot faster than vagrant and could even help to the idea of even improve symfony tests to avoid travis instabilities or reproduction tasks. EDIT: if it is useful and gets the eye who knows they may reconsider or at least showcast it |
@hacfi possible you're right. I should write small article why it's useful with some cool screenshots like this: @cordoval It was tested only in Some details about used versions:
|
@@ -10,3 +10,4 @@ | |||
/vendor/ | |||
/bin/ | |||
/composer.phar | |||
.mysql |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This directory required to survive container restart and keep all data in MySQL.
i wonder if it would be useful at least a link to https://docs.docker.com/compose/ (btw i was using fig for my projects cc @AlexKovalevych) would be useful and why it is more sanctioned than fig if it is? |
@cordoval answer is on http://www.fig.sh/index.html
P. S. |
oh my bad true, had forgotten indeed, yes that is perfect |
@alexanderilyin Thanks for your contribution. Unfortunately, we do not want to go down this road in this repository. The SE is only about the code you need to bootstrap a new Symfony project... and for any kind of Symfony projects. And your configurations makes some assumptions like a MySQL database or the usage of nginx. It would much better to create a standalone repo or contribute a cookbook for the docs. Thanks. |
@alexanderilyin I am interested in this kind of thing for the docs however - some unofficial (meaning community) repositories with Vagrant or Docker setups that we can inform people of in the official docs. See symfony/symfony-docs#4676 for an example. I think we're not doing a great service yet since this information is not included, and I'd be eager to discuss fixing that :). Thanks! |
command: php-fpm --allow-to-run-as-root | ||
image: php:5.6.8-fpm | ||
volumes: | ||
- fpm.conf:/usr/local/etc/php-fpm.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexanderilyin I got file exists at /mnt/sda1/var/lib/docker/aufs/mnt/eb13125c1167ab4a391994d402ac8181b13901875d2c1350793452242ca275b2/usr/local/etc/php-fpm.conf, can't create volume there
error when docker-compose up
. Same to other NGINX config below.
I am using boot2docker, am I missing anything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexanderilyin FYI if I mount a directory, instead of a file, then it does build.
@alexanderilyin is this project death or alive? are you following up? |
PREREQUIREMENTS
QUICK START
3 preconfigured containers based on official images. Start in 3 steps.
If you prefer access to your site via
localhost
do the following: