I have a docker compose-app that I wished to deploy on fly.io. After reading some other posts on community.fly.io, I realized that docker-compose isn’t supported as of now, and I need to ‘convert’ my app to use the fly.toml instead.
What is in ./data/foo? If you want to copy some static data at build time, use a COPY command in the Dockerfile. Otherwise, your [[mounts]] section looks right to me, and you can initialize your data via an ENTRYPOINT shell script, via fly ssh console, or have your app code do it.
What is your app doing with the docker daemon socket? There is most likely some way of doing what it needs on Fly, but it’s not possible to mount that since we don’t run Docker on our hosts.
The app launches another docker container for temporary actions. Its similar to act runner. I think this would be impossible to run in such a scenario, and would need an actual Bare Metal or a VM with docker in docker configured.
Thanks for your time anyways. Have a nice day
Gotcha. You can either run Docker in your machine (as an example, our remote builders do this), or use the machines API to create/destroy VMs on demand. Hope this helps!