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