How to run symfony through docker composer

I git cloned this repository: docker-symfony and followed the installation instructions.

When I visited symfony.dev:81, I saw Cybana 4.

My problem is that I do not understand where I should place the Symfony project.

My OS is Ubuntu 14.04

+4
source share
1 answer

The instructions mention:

put your symfony application in a foldersymfony and remember to add it symfony.devto your /etc/hostsfile.

Then run:

$ docker-compose up

, Symfony URL-: http://symfony.dev ( http://symfony.dev:81)

"symfony " docker-compose.yml#L4

volumes:
    - ./symfony:/var/www/symfony

, symfony docker-symfony, /var/www/symfony .

docker-symfony
  code
  elk/logstash
  nginx
  php-fpm
  .gitignore
  .travis.yml
  README.md
  symfony   <====== Add your folder there

, symfony.

+2

Source: https://habr.com/ru/post/1621693/


All Articles