Skip to content

Instantly share code, notes, and snippets.

@gertjana
Created January 23, 2026 16:38
Show Gist options
  • Select an option

  • Save gertjana/9e27139f864f4d4cc90a006054ee904d to your computer and use it in GitHub Desktop.

Select an option

Save gertjana/9e27139f864f4d4cc90a006054ee904d to your computer and use it in GitHub Desktop.
Run dragonfly with snapshot persistence
FROM dragonflydb/dragonfly:v1.27.1
WORKDIR /data
CMD ["--dir", "/data", "--snapshot_cron", "0 */1 * * *", "--compression_mode", "MULTI_ENTRY_LZ4"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment