this is an example how you could configure docker-sync to run on osx with symfony.
using docker for mac doesnt perform well, but docker-sync seems to be a very usable alternative.
normal times i use vagrant. docker sync should be as fast (or may faster) than using vagrant and nfs.
- install (http://docker-sync.io/)[docker-sync]
- clone this repo.
- run
composer install
- run
docker-sync-stack start
- wait a bit and open
http://127.0.0.1/app_dev.php
- run
docker-sync-stack clean
- change the files inside docker/nginx
- rebuild the container using
docker-compose build --no-cache nginx
the project is located in /opt/proj.
you can ssh into the container using:
docker exec -it `docker ps | grep "nginx" | awk '{print $1}'` sh
you can ssh into the container using:
docker exec -it `docker ps | grep "php-fpm" | awk '{print $1}'` /bin/bash