fix permission deined issue

This commit is contained in:
Jack Goh
2018-07-18 19:02:51 +08:00
parent f17ce7e159
commit cd2e06c507
3 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ RUN docker-php-ext-install pdo pdo_mysql zip gd
WORKDIR /var/www
COPY . /var/www
RUN chown -R www-data:www-data /var/www
RUN chmod 777 /var/www/storage/logs/laravel.log
RUN chmod -R 777 /var/www/storage
RUN composer install
RUN php artisan clear-compiled
-3
View File
@@ -13,8 +13,5 @@ RUN curl --silent --show-error --fail --location \
COPY Caddyfile /etc/Caddyfile
WORKDIR /var/www/public
RUN chown -R www-data:www-data /var/www
RUN chown -R www-data:www-data /var/www/public
RUN chmod 777 /var/www/storage/logs/laravel.log
CMD ["/usr/bin/caddy", "--conf", "/etc/Caddyfile", "--log", "stdout"]
+1 -1
View File
@@ -29,7 +29,7 @@ services:
caddy:
build: ./caddy
volumes:
- ./:/var/www
- .:/var/www
- ./caddy/Caddyfile:/etc/Caddyfile
- ./logs/caddy:/var/log/caddy
- ./data:/root/.caddy