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
|
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
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user