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.
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
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