Answer the question
In order to leave comments, you need to log in
How to automatically run Laravel migrations when docker is raised?
i want migrations to run in my created container after running docker-compose up
php-fpm:
image: webdevops/php-dev:7.3
hostname: php-fpm
volumes:
- "./:/app"
working_dir: "/app"
depends_on:
- db
command: php artisan migrate:fresh --seed
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question