dreamfactorysoftware / df-docker

Docker container for DreamFactory.
59 stars 56 forks source link

Configuration method 1, where is the data? #32

Closed HavardLine closed 7 years ago

HavardLine commented 8 years ago

Hi There! We implement df-docker locally. I am in the process of finding out what data we should keep when swapping out containers.

mysql: /var/lib/mysql -OK redis: nothing? -NEED TO CONFIRM df-docker: nothing? -NEED TO CONFIRM

Are anyone able to help us out here?

This is our current code df1-db.service, df1-redis.service and df1.service can be found at https://github.com/LTS-AS/CoreOS/tree/master/fleet

HavardLine commented 7 years ago

OK, we KNOW that we need this data

mysql: DB data at /var/lib/mysql

df-docker: Local file service at /opt/dreamfactory/storage/app/

There may be other places. We try reusing /opt/dreamfactory/storage/ at df-docker now. This locks good so far.

philicious commented 7 years ago

@HavardLine I'm running DF as immutable container(s) and all you need to care about for preserving data is

I see you are using fleet for orchestration. I wrote a few blog posts that might interest you but they use docker-compose http://www.devops-blog.net/dreamfactory/using-dreamfactory-2-x-as-rest-api-with-docker http://www.devops-blog.net/dreamfactory/orchestrating-dreamfactory-with-docker-compose-and-a-loadbalancer

HavardLine commented 7 years ago

Perfect! thanks @philicious