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:
Ümit Tunç
2025-01-21 09:35:27 +03:00
parent 3e10131f81
commit 725fb50e03
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
version: '3'
services: services:
app: app:
build: build:
context: . context: .
dockerfile: dockerfile dockerfile: dockerfile
image: truncgil-finance-app image: truncgil-finance-app:latest
container_name: truncgil-finance-app container_name: truncgil-finance-app
volumes: volumes:
- .:/var/www - .:/var/www
+3 -3
View File
@@ -51,9 +51,9 @@ RUN set -x && \
# Laravel uygulamasını başlatma ve loglama # Laravel uygulamasını başlatma ve loglama
RUN set -x && \ RUN set -x && \
echo "Laravel kurulum komutları başlatılıyor..." && \ # echo "Laravel kurulum komutları başlatılıyor..." && \
php artisan migrate && \ # php artisan migrate && \
echo "Migrasyon tamamlandı" && \ # echo "Migrasyon tamamlandı" && \
php artisan key:generate && \ php artisan key:generate && \
echo "Uygulama anahtarı oluşturuldu" && \ echo "Uygulama anahtarı oluşturuldu" && \
php artisan config:cache && \ php artisan config:cache && \