I'm using ArangoDB and developing a Foxx application. ArangoDB is hosted within a Docker container using this image https://store.docker.com/images/arangodb. I have another Docker container that is running my app front end.
I've created a volume to persist database data, and I've also created a volume to persist Foxx app data:
- type: volume
source: databasedev
target: /var/lib/arangodb3
- type: volume
source: foxx
target: /var/lib/arangodb3-apps
Finally, I created a bind mount from my Foxx source folder to the Foxx app folder in my ArangoDB container:
- type: bind
source: C:\\[pathtosource]\\src\\foxx
target: /var/lib/arangodb3-apps/_db/poflow
About 40-50% of the time when I compose up my Foxx source code gets deleted. I've tried using the "no-copy" option on the Foxx volume, but it only seems to make it worse.
After my containers compose up a node script in my front end container attempts to install my Foxx service and set it to development mode. Basically, it zips my Foxx source on the fly and installs it. But it often finds my Foxx source folder empty and fails, and which point I restore the files, and compose down, then back up and try again.
Am I going about this wrong? Is there something I'm missing? It seems like ArangoDB is not persisting the Foxx data every time.