Sign inSign up

mohmadhabib/webdis-summitdb

By mohmadhabib

•Updated over 1 year ago

Webdis Docker Image but With SummitDB as Backend

Image
Databases & storage
0

172

mohmadhabib/webdis-summitdb repository overview

⁠Docker Webdis with SummitDB

Docker Pulls Docker Image Size (tag) linux/amd64 linux/arm64

This Docker Image is meant to be easy Backend RESTful Database API, using Webdis⁠ with more functionality using SummitDB⁠ to give us JSET⁠, JGET⁠ and JDEL⁠ to working with JSON Documents, as well as all the functionality Redis⁠ Gives us.

⁠Quick Start

pulling from GitHub Docker Registry⁠

docker pull ghcr.io/mohmadhabib/webdis-summitdb

Or pulling from Docker Hub Registry⁠

docker pull mohmadhabib/webdis-summitdb

Build Your Own Image

git clone https://github.com/mohmadhabib/webdis-summitdb && cd webdis-summitdb && docker build -t webdis-summitdb .

Run The Image

# Run Webdis Server With SummitDB as Provider using ENVIROMENT VARIABLE LOCAL_SUMMITDB
docker run -it --rm --name webdis-summitdb -p 7379:7379 -e LOCAL_SUMMITDB=true ghcr.io/mohmadhabib/webdis
# Run Webdis Server With SummitDB With Presistance Data (Write To Disk)
# This way you will not reset/delete the Data on every Restart of the Container
docker run -it --rm --name webdis-summitdb -p 7379:7379 -v "$(pwd)/data:/data" -e LOCAL_SUMMITDB=true ghcr.io/mohmadhabib/webdis
# OR Use Local Redis Server Instead of SummitDB
docker run -it --rm --name webdis-summitdb -p 7379:7379 ghcr.io/mohmadhabib/webdis # LOCAL_REDIS is true By Default
# OR Use Local Redis Server Instead of SummitDB with Presistance Data
# This way you will not reset/delete the Data on every Restart of the Container
docker run -it --rm --name webdis-summitdb -p 7379:7379 -v "$(pwd)/data:/data" ghcr.io/mohmadhabib/webdis # LOCAL_REDIS is true By Default
# OR
docker run -it --rm --name webdis-summitdb -p 7379:7379 -e LOCAL_REDIS=true ghcr.io/mohmadhabib/webdis

Or Simply use docker-compose⁠ File within this Repo

git clone https://github.com/mohmadhabib/webdis-summitdb && cd webdis-summitdb && docker compose up -d

Test Your Backend

# Set a JSON Document
wget -qO- http://localhost:7379/jset/user:101/name/MohammadHabib
# Set Another Key to JSON Document
wget -qO- http://localhost:7379/jset/user:101/email/[email protected]
# Retrive Full JSON Document Data
wget -qO- http://localhost:7379/get/user:101
# Get Specific Value From JSON Document
wget -qO- http://localhost:7379/jget/user:101/name

# And So on,all Redis Functions and JSON is now Available, you could now Start Your Backend within seconds

⁠Credits

I have used anapsix/docker-webdis⁠ For so many projects, but since this comes into mymind, i have decided to compine anapsix/docker-webdis⁠ and pteich/docker-summitdb⁠ and make little additions/modifications and Tada!

So Big Thanks to: Webdis⁠ eGet⁠ anapsix/docker-webdis⁠ pteich/docker-summitdb⁠

Tag summary

Content type

Image

Digest

sha256:4cd01c76d…

Size

6.6 MB

Last updated

over 1 year ago

docker pull mohmadhabib/webdis-summitdb