coolify fix
This commit is contained in:
@@ -21,8 +21,11 @@ services:
|
||||
DB_DATABASE: ${DB_DATABASE}
|
||||
DB_USERNAME: ${DB_USERNAME}
|
||||
DB_PASSWORD: ${DB_PASSWORD}
|
||||
|
||||
FILESYSTEM_DISK: public
|
||||
volumes:
|
||||
- public_files:/var/www/html/public
|
||||
- upload_files:/var/www/html/storage/app/public
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
@@ -59,3 +62,4 @@ services:
|
||||
volumes:
|
||||
db_data:
|
||||
public_files:
|
||||
upload_files:
|
||||
|
||||
@@ -39,6 +39,8 @@ COPY --from=php-builder /app /var/www/html
|
||||
|
||||
COPY --from=node-builder /app/public /var/www/html/public
|
||||
|
||||
RUN ln -sf ../../storage/app/public /var/www/html/public/storage
|
||||
|
||||
RUN chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache \
|
||||
&& chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache
|
||||
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ server {
|
||||
}
|
||||
|
||||
# Serve static Vite assets directly (cache them for performance)
|
||||
location ~* \.(jpg|jpeg|gif|png|css|js|ico|webp|svg|woff|woff2|ttf|eot)$ {
|
||||
location ~* \.(jpg|jpeg|gif|png|css|js|ico|webp|svg|woff|woff2|ttf|eot|mp3|wav|ogg|pdf)$ {
|
||||
expires max;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user