4 ms·
Thank you! We use the standard Docker volumes [1] for persisting data. It’s pretty straightforward – you just define a volume and specify where to mount it:
by notpushkin 2y ago
Thank you!
We use the standard Docker volumes [1] for persisting data. It’s pretty straightforward – you just define a volume and specify where to mount it:
volumes:
app-data: {}
services:
app:
image: example.com/app/backend:latest
volumes:
- app-data:/data
This should work pretty well for most use cases. (There are some caveats if you decide to run multiple Lunni servers in a cluster – basically, every node would get its own volume by default – which is the main reason we don’t officially support that yet :-)
[1]: https://docs.docker.com/engine/storage/volumes/ https://docs.docker.com/engine/storage/volumes/