You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I omitted all env vars for better reading.
The containers starts and works right, but i have a problem with data-persist.
I created a two folders /home/mattia/docker/data/magento /home/mattia/docker/data/mysql and give them 777 permission.
Now i try to create some db or apply some modify to web app but neither containers persist data on volumes.
If i for example inspect mysql container i get :
If i run the containers using docker run and specify -v /home/mattia/docker/data/path the containers seems to persist data correctly.
So where i'm wrong?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi, I have set up two containers db and web app and now i'm trying to run it using docker-compose.
This is my docker-compose.yml
I omitted all env vars for better reading.
The containers starts and works right, but i have a problem with data-persist.
I created a two folders /home/mattia/docker/data/magento /home/mattia/docker/data/mysql and give them 777 permission.
Now i try to create some db or apply some modify to web app but neither containers persist data on volumes.
If i for example inspect mysql container i get :
If i run the containers using docker run and specify -v /home/mattia/docker/data/path the containers seems to persist data correctly.
So where i'm wrong?
Thanks in advance.
The text was updated successfully, but these errors were encountered: