R
R
Romi2021-03-28 12:39:50
Docker
Romi, 2021-03-28 12:39:50

Laradock (Docker Compose) - doesn't MySQL data from different projects overwrite each other? Do they have the SINGLE Volume (${DATA_PATH_HOST}/mysql)?

I study the Laradock config, and there:

volumes:
        - ${DATA_PATH_HOST}/mysql:/var/lib/mysql


That is, I understand that he saves the base outside the box, right? So that if I suddenly reboot everything there, the data remains, right?

What if I do another project? It will also write there, in:

${DATA_PATH_HOST}/mysql

right?

That is, everything will be erased from the first project?

If so, what is usually done with it when they want to keep both this and that?

Do they specify a different DATA_PATH_HOST value in .env?

Or in some other way?

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2021-03-28
@romicohen

Do they specify a different DATA_PATH_HOST value in .env?
Yes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question