From 725fb50e034ac48aa5782340513109cdda035af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Tue, 21 Jan 2025 09:35:27 +0300 Subject: [PATCH] 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. --- docker-compose.yml | 3 ++- dockerfile | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8cc9736..ee462f5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/dockerfile b/dockerfile index 3c0b5cd..2e3deb5 100644 --- a/dockerfile +++ b/dockerfile @@ -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 && \