Commit 0111ed70 authored by David Ivain's avatar David Ivain
Browse files

docker presque bon. Reste à reussir a lancer le serveur avec docker-compose...

docker presque bon. Reste à reussir a lancer le serveur avec docker-compose up, editer le app_dev.php dans le dockerfile et 2-3 details
parent 57f177e0
......@@ -25,6 +25,9 @@ RUN mkdir upload
RUN composer install
RUN php vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php
RUN export LANG=en_US.UTF-8
RUN sed -i "s/;date.timezone\s=.*/date.timezone = Europe\/Paris/" /usr/local/etc/php/php.ini
RUN mkdir app/cache && mkdir app/logs
RUN chmod 777 app/cache && chmod 777 app/logs
# teacherbook
WORKDIR /var/www/html
......@@ -33,4 +36,6 @@ RUN unzip teacherbook-master.zip
RUN mv teacherbook-master teacherbook
WORKDIR /var/www/html/teacherbook
RUN cp ../alecsia/docker/config/config.php config.php
RUN composer install
\ No newline at end of file
RUN composer install
WORKDIR /var/www/html/alecsia
\ No newline at end of file
......@@ -7,6 +7,8 @@ services:
- ./upload:/var/www/html/alecsia/upload
ports:
- '8000:8000'
- '8080:80'
# command: bash -c "(php /var/www/html/alecsia/app/console doctrine:schema:create || php /var/www/html/alecsia/app/console doctrine:schema:update) && pwd"
links:
- "mysql-db:database"
depends_on:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment