Compare commits

..

No commits in common. "d9c60efc157bb10c8cc19648e1b72d0bb870b820" and "5ed6e1d34b49133668835e3dfdd290929af11ae2" have entirely different histories.

4 changed files with 1 additions and 11 deletions

0
Dockerfile Executable file → Normal file
View File

3
docker-compose.yml Executable file → Normal file
View File

@ -25,7 +25,6 @@ services:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: laravel container_name: laravel
user: "1000:1000" # Match the host user's UID:GID
depends_on: depends_on:
mysql: mysql:
condition: service_healthy condition: service_healthy
@ -38,7 +37,6 @@ services:
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5
command: ["/var/www/html/start.sh"]
command: > command: >
sh -c "sleep 10 && php artisan migrate --force && php-fpm" sh -c "sleep 10 && php artisan migrate --force && php-fpm"
restart: unless-stopped restart: unless-stopped
@ -64,4 +62,3 @@ networks:
volumes: volumes:
mysql-data: mysql-data:
mysql-data:

0
nginx/default.conf Executable file → Normal file
View File

View File

@ -1,7 +0,0 @@
#!/bin/sh
sleep 10
if [ -z "$(grep '^APP_KEY=' /var/www/html/.env)" ]; then
php artisan key:generate
fi
php artisan migrate --force
php-fpm