https://slingdata.io logo
Is there a way to handle the file
# sling-help
b
Is there a way to handle the file persistence binding with docker-compose? I'm trying to have pipelines/replications/specs/etc in the host machine and then mount that to the sling-platform container. The basics:
Copy code
volumes:                      
ā–Ž - ./sling-data:/home/sling/.sling
ā–Ž - ./sling-conf/api-specs:/home/sling/api-specs:ro
This works to load the api-specs from my host but I was expecting to see files created from the UI in there and they are not showing up. I see a env.yml in the .sling directory but it's not what I have in the actual platform container which is odd. Managing the files from and into the platform is a bit of a pain as well because I even tried the git option (in settings) but it fails because it finds things as files when it expects directories. Are those yaml files stored in the db or something?
f
Yes, the files are stored in the PG database. Git sync is the way to go. It is improved in the next release as it will allow bi-directional syncing and some bug fixes. Release target is end of this week. You could also try
sling project sync
using an API key, from your machine for now, see https://docs.slingdata.io/sling-platform/platform/cli-usage#sync-files https://cdn.discordapp.com/attachments/1470596372125450322/1470600961033765110/image.png?ex=698be35f&is=698a91df&hm=7baf1ded86956ee3e3535a6f66eebc41b0c26440120ec7c1a8894b1d1ecf20cd&