fix nginx conf and laravel command
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
FROM nginx:1.25-alpine
|
||||
COPY default.conf /etc/nginx/conf.d/default.conf
|
||||
@@ -7,7 +7,7 @@ until php -r "try { new PDO('mysql:host=${DB_HOST};port=${DB_PORT}', '${DB_USERN
|
||||
done
|
||||
echo "Database connected."
|
||||
|
||||
php artisan migrate --force --isolated
|
||||
php artisan migrate --force
|
||||
php artisan storage:link --force || true
|
||||
|
||||
if [ "${APP_ENV}" = "production" ]; then
|
||||
|
||||
+3
-2
@@ -11,9 +11,10 @@ services:
|
||||
- mariadb
|
||||
|
||||
nginx:
|
||||
image: nginx:1.25-alpine
|
||||
build:
|
||||
context: .docker/nginx
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- .docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- app-storage:/var/www/storage/app
|
||||
- app-public-img:/var/www/public/img
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user