coolify fix
This commit is contained in:
@@ -21,8 +21,11 @@ services:
|
|||||||
DB_DATABASE: ${DB_DATABASE}
|
DB_DATABASE: ${DB_DATABASE}
|
||||||
DB_USERNAME: ${DB_USERNAME}
|
DB_USERNAME: ${DB_USERNAME}
|
||||||
DB_PASSWORD: ${DB_PASSWORD}
|
DB_PASSWORD: ${DB_PASSWORD}
|
||||||
|
|
||||||
|
FILESYSTEM_DISK: public
|
||||||
volumes:
|
volumes:
|
||||||
- public_files:/var/www/html/public
|
- public_files:/var/www/html/public
|
||||||
|
- upload_files:/var/www/html/storage/app/public
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
@@ -59,3 +62,4 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
db_data:
|
db_data:
|
||||||
public_files:
|
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
|
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 \
|
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
|
&& 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)
|
# 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;
|
expires max;
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user