[fix] php volume
This commit is contained in:
parent
59a4d6e4a5
commit
2d11218076
@ -21,20 +21,20 @@ ENV APACHE_LOG_DIR /var/log/apache2
|
||||
ENV APACHE_LOCK_DIR /var/lock/apache2
|
||||
|
||||
# Expose apache
|
||||
EXPOSE 80
|
||||
#EXPOSE 80
|
||||
|
||||
# Copy this repo into place.
|
||||
ADD . /var/www/site
|
||||
#ADD . /var/www/site
|
||||
WORKDIR /var/www/site
|
||||
|
||||
# Testing permisions
|
||||
RUN chmod 777 -R .
|
||||
#RUN chmod 777 -R .
|
||||
|
||||
# Installing dependencies
|
||||
RUN composer install
|
||||
#RUN composer install
|
||||
|
||||
# Unit tests
|
||||
RUN composer test
|
||||
#RUN composer test
|
||||
|
||||
# Update the default apache site with the config we created.
|
||||
ADD apache-config.conf /etc/apache2/sites-enabled/000-default.conf
|
||||
|
@ -6,7 +6,7 @@ services:
|
||||
ports:
|
||||
- "8085:80"
|
||||
volumes:
|
||||
- api-payroll:/var/www/site
|
||||
- ./api-payroll:/var/www/site
|
||||
depends_on:
|
||||
- mysql
|
||||
mysql:
|
||||
|
Loading…
Reference in New Issue
Block a user