Update Docker configuration and comment out Laravel migration commands
- Updated the Docker Compose file to specify the latest image tag for the application. - Commented out the Laravel migration commands in the Dockerfile to prevent automatic migrations during container build, enhancing control over the deployment process. - These changes improve the Docker setup and provide better management of the Laravel application lifecycle.
This commit is contained in:
+2
-1
@@ -1,9 +1,10 @@
|
||||
version: '3'
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: dockerfile
|
||||
image: truncgil-finance-app
|
||||
image: truncgil-finance-app:latest
|
||||
container_name: truncgil-finance-app
|
||||
volumes:
|
||||
- .:/var/www
|
||||
|
||||
+3
-3
@@ -51,9 +51,9 @@ RUN set -x && \
|
||||
# Laravel uygulamasını başlatma ve loglama
|
||||
|
||||
RUN set -x && \
|
||||
echo "Laravel kurulum komutları başlatılıyor..." && \
|
||||
php artisan migrate && \
|
||||
echo "Migrasyon tamamlandı" && \
|
||||
# echo "Laravel kurulum komutları başlatılıyor..." && \
|
||||
# php artisan migrate && \
|
||||
# echo "Migrasyon tamamlandı" && \
|
||||
php artisan key:generate && \
|
||||
echo "Uygulama anahtarı oluşturuldu" && \
|
||||
php artisan config:cache && \
|
||||
|
||||
Reference in New Issue
Block a user