mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 04:24:08 +00:00
fix permission deined issue
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user