Optimized Alpine based Strong hardened Dragonfly db
1.2K
A highly secure, hardened, and multi-architecture (amd64 and arm64) Docker image for Dragonfly—a modern, ultra-fast in-memory data store designed as a drop-in replacement for Redis and Memcached.
This image is built using a secure two-stage process. The final runtime image is based on dhi.io/alpine-base:3.24, which is optimized to contain no package managers (such as apk) or extraneous shell utilities (like curl or wget), significantly reducing the container's attack surface.
linux/amd64 and linux/arm64 (AArch64).Run Dragonfly immediately using Docker:
docker run -d --name dragonfly -p 6379:6379 hmtanbir/dragonfly:latest
To persist data, mount a volume to /data and configure Dragonfly to store snapshots there:
docker run -d \
--name dragonfly \
-p 6379:6379 \
-v dragonfly_data:/data \
hmtanbir/dragonfly:latest --logtostderr --dir=/data
Create a docker-compose.yml file:
services:
dragonfly:
image: hmtanbir/dragonfly:latest
container_name: dragonfly
ports:
- "6379:6379"
volumes:
- dragonfly_data:/data
command: ["--logtostderr", "--dir=/data"]
restart: unless-stopped
volumes:
dragonfly_data:
Run with:
docker compose up -d
Dragonfly accepts standard Redis-compatible and Dragonfly-specific flags as arguments. For example:
--dir=/data: Directory to save database snapshots.--logtostderr: Route logs to stderr.--requirepass=<YOUR_PASSWORD>: Set an authentication password.Content type
Image
Digest
sha256:ce0490a72…
Size
14.4 MB
Last updated
12 days ago
docker pull hmtanbir/dragonfly