fix access docker

This commit is contained in:
2025-09-19 22:20:10 +07:00
parent 3092ecf34b
commit ac1183ac5e
2 changed files with 10 additions and 6 deletions

View File

@@ -64,12 +64,13 @@ RUN composer run-script post-autoload-dump && \
# Set proper permissions (for production only do this once)
RUN mkdir -p storage/logs \
&& mkdir -p storage/framework/{cache,sessions,views} \
&& mkdir -p storage/app \
&& mkdir -p storage/app/public \
&& mkdir -p bootstrap/cache \
&& chown -R www-data:www-data /var/www/html \
&& chmod -R 775 storage \
&& chmod -R 775 bootstrap/cache \
&& chmod -R 755 public
&& chmod -R 755 public \
&& chmod -R 777 storage/app/public
# Nginx config
COPY ./docker/nginx.conf /etc/nginx/sites-available/default