P
P
Pavel2022-03-02 21:52:39
Docker
Pavel, 2022-03-02 21:52:39

How to automatically run laravel migrations in docker?

How to make docker automatically run laravel migrations when container is raised?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2022-03-02
@PAPASKAS

Write a script that will do everything you need and add it to the Dockerfile as an ENTRYPOINT
Also, ENTRYPOINT can be overridden at the time of container startup, so it is not necessary to build a custom image.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question