Compare commits

...

2 Commits

Author SHA1 Message Date
4d5b65a98a uppercese category qoshildi 2026-04-06 05:23:20 +05:00
eaadf86ea1 Fix storage permissions: use named volume to avoid bind mount chown errors
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 05:22:58 +05:00
3 changed files with 12 additions and 3 deletions

View File

@@ -5,7 +5,8 @@
"Bash(docker exec:*)",
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:8005/)",
"Bash(curl -v http://localhost:8005/)",
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:8005/login)"
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:8005/login)",
"Bash(git add:*)"
]
}
}

View File

@@ -52,9 +52,14 @@ RUN composer install \
--no-autoloader \
--prefer-dist
RUN composer dump-autoload --no-scripts --optimize --classmap-authoritative && \
RUN mkdir -p /var/www/storage/app/public \
/var/www/storage/framework/cache \
/var/www/storage/framework/sessions \
/var/www/storage/framework/views \
/var/www/storage/logs && \
composer dump-autoload --no-scripts --optimize --classmap-authoritative && \
chown -R root:www-data /var/www && \
chmod 755 -R /var/www && \
chmod -R 775 /var/www/bootstrap/cache
chmod -R 775 /var/www/storage /var/www/bootstrap/cache
WORKDIR /var/www

View File

@@ -9,6 +9,7 @@ services:
restart: always
volumes:
- ./:/var/www
- storage_data:/var/www/storage
depends_on:
- db
web:
@@ -17,6 +18,7 @@ services:
restart: always
volumes:
- ./:/var/www
- storage_data:/var/www/storage
- ./_docker/nginx/conf.d:/etc/nginx/conf.d
ports:
- "8005:80"
@@ -37,3 +39,4 @@ services:
volumes:
postgres_data:
storage_data: