webdevops/php-docker-boilerplate

Nginx Symfony3 Debian 8

achref-riahi opened this issue · 5 comments

Hi,
When i try to connect to app_dev.php i get this Alert !

"An error occurred while loading the web debug toolbar (404: Not Found).

Do you want to open the profiler?"
screenshot from 2016-03-29 18 16 33
and when i press OK i get this url, app_dev.php/_profiler/290fc5 with "File not found. " message.

the config that i use

  • docker-compose.development.yml
  • webdevops/php-nginx:debian-8 image

It's working here.

  • How old is the webdevops/php-nginx:debian-8 image?
  • Which boilerplate version do you use?
  • Which etc/environment.yml settings are used?
  • Any errors shown with docker-compose logs app?

Hi mblashke,

  • How old is the webdevops/php-nginx:debian-8 image?
    REPOSITORY TAG IMAGE ID CREATED SIZE
    webdevops/php-nginx debian-8 7f5632c53de7 20 hours ago 856 MB
  • Which boilerplate version do you use?
    I use the latest version from your git repository
    https://github.com/webdevops/php-docker-boilerplate
  • Which etc/environment.yml settings are used?
    only the default server and mysql setting are activated
    Webserver
    General
    WEB_DOCUMENT_ROOT=/app/
    WEB_DOCUMENT_INDEX=index.php
    CLI_SCRIPT=php /app/index.php
    MySQL settings
    MYSQL_ROOT_PASSWORD=dev
    MYSQL_USER=dev
    MYSQL_PASSWORD=dev
    MYSQL_DATABASE=database
  • Any errors shown with docker-compose logs app?
    I think not
    http://pastebin.com/PYA8MALT

With Symfony you should set (default directory layout of Symfony)
WEB_DOCUMENT_ROOT=/app/web/
and
WEB_DOCUMENT_INDEX=app_dev.php

Please try again :)

many many thanks for your help =)

Sorry for asking here, but i think this is maybe relevant.

Prerequisites. I'm using Symfony3 and it requires /app/var/cache + /app/var/logs to be writeable but by default there aren't. If i do chmod 1777 -R /app/var manually as root inside image – it's ok.

My related question 1 is: where i need to put this code to automate this? Maybe, in /Dockerfile.development one more RUN-section, right? Just noobie here.

Unrelated question 2: host machine doesn't has even php installed. Where i need to script installing composer (and some php extensions from pecl needed to project)? Have no idea )-: