fix nginx conf and laravel command

This commit is contained in:
2026-06-08 04:53:09 +07:00
parent 9f7cae04ea
commit f64539b3e2
3 changed files with 6 additions and 3 deletions
+2
View File
@@ -0,0 +1,2 @@
FROM nginx:1.25-alpine
COPY default.conf /etc/nginx/conf.d/default.conf
+1 -1
View File
@@ -7,7 +7,7 @@ until php -r "try { new PDO('mysql:host=${DB_HOST};port=${DB_PORT}', '${DB_USERN
done done
echo "Database connected." echo "Database connected."
php artisan migrate --force --isolated php artisan migrate --force
php artisan storage:link --force || true php artisan storage:link --force || true
if [ "${APP_ENV}" = "production" ]; then if [ "${APP_ENV}" = "production" ]; then
+3 -2
View File
@@ -11,9 +11,10 @@ services:
- mariadb - mariadb
nginx: nginx:
image: nginx:1.25-alpine build:
context: .docker/nginx
dockerfile: Dockerfile
volumes: volumes:
- .docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- app-storage:/var/www/storage/app - app-storage:/var/www/storage/app
- app-public-img:/var/www/public/img - app-public-img:/var/www/public/img
depends_on: depends_on: