valkey-extension
Valkey-extension installs valkey-server and loads all the valkey modules.
773
Maintained by:
the Valkey Community
Where to get help:
Please open an issue stating your question at Valkey-Extension Issues.
Dockerfile linksValkey-Extension is a containerized version of Valkey, enhanced with popular modules like Valkey-JSON, Valkey-Bloom, and Valkey-Search, allowing you to utilize advanced data structures and additional search capabilities alongside standard Valkey functionality.
This image is built on top of the official Valkey base image and simplifies deployment of Valkey with these powerful modules included.
For ease of accessing Valkey-Extension from other containers via Docker networking, the "Protected mode" is turned off by default. This means if you expose the port externally (e.g., via -p), it will be open without authentication. It is strongly recommended to set a password or authentication method if exposing your instance to the internet.
See the following resources for securing Valkey:
$ docker run --name some-valkey-extension -d valkey/valkey-extension
$ docker run --name some-valkey-extension -d valkey/valkey-extension valkey-server --save 60 1 --loglevel warning
This example saves a snapshot every 60 seconds if at least one write occurred. Data is stored at VOLUME /data.
valkey-cli$ docker run -it --network some-network --rm valkey/valkey-extension valkey-cli -h some-valkey-extension
You can configure startup arguments with the environment variable VALKEY_EXTRA_FLAGS:
$ docker run --env VALKEY_EXTRA_FLAGS='--save 60 1 --loglevel warning' valkey/valkey-extension
Create a custom configuration file valkey.conf and use it in your container:
Dockerfile approach:
FROM valkey/valkey-extension:latest
COPY valkey.conf /usr/local/etc/valkey/valkey.conf
CMD [ "valkey-server", "/usr/local/etc/valkey/valkey.conf" ]
Docker run approach:
$ docker run -v /myvalkey/conf:/usr/local/etc/valkey --name myvalkey-extension valkey/valkey-extension valkey-server /usr/local/etc/valkey/valkey.conf
valkey/valkey-extension:<version>This is the primary image, which includes Valkey along with common modules like Valkey-JSON, Valkey-Bloom, and Valkey-Search preloaded. It is suitable for development, testing, and production environments where these modules are needed out of the box.
Some of the tags may include names like bookworm, which refer to Debian release codenames. These indicate the base image used and help ensure compatibility if your container needs additional packages. Specifying these explicitly is recommended to avoid unexpected changes when base image versions update.
If you want a minimal yet functional Valkey container with built-in modules, this image is a great place to start.
View the license information for software included in this image.
Users of this image are responsible for ensuring compliance with all licenses of software contained within.
Content type
Image
Digest
sha256:c27ef5485…
Size
79.7 MB
Last updated
about 1 year ago
docker pull roshkhatri/valkey-extension:bookworm