Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Whalify Yourself !

Ajeet Singh Raina, Docker Captain, ARM Innovator, ajeetraina

💭
Whalify Yourself !
View GitHub Profile
View docker-compose.yml
version: '3.7'
services:
redismod:
image: redis/redis-stack:latest
container_name: redis
restart: unless-stopped
environment:
EMAIL: zindagi@bhanu.dev
volumes:
@ajeetraina
ajeetraina / docker-compose.yml
Created Apr 14, 2022
Docker Compose for RedisZindagi
View docker-compose.yml
version: '3.7'
services:
redismod:
image: redislabs/redismod
container_name: redis
restart: unless-stopped
environment:
EMAIL: zindagi@bhanu.dev
volumes:
@ajeetraina
ajeetraina / environ.sh
Created Feb 22, 2022
Setting up Environment variables
View environ.sh
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
SECRET_KEY=
TMDB=
@ajeetraina
ajeetraina / clone.sh
Created Feb 22, 2022
Cloning the Movify repository
View clone.sh
git clone https://github.com/redis-developer/movify
@ajeetraina
ajeetraina / run.sh
Last active Feb 22, 2022
Script to setup Movify
View run.sh
docker build -t redis21_backend backend/
docker build -t redis21_frontend frontend/
docker-compose up
@ajeetraina
ajeetraina / docker-compose.yml
Created Feb 22, 2022
Docker Compose File for Movify
View docker-compose.yml
version: '3.7'
services:
nginx:
  image: nginx:1.17
  volumes:
     - ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
  ports:
    - 8000:80
  depends_on:
    - backend
@ajeetraina
ajeetraina / gist:6891f1562b09182eabf16d8650ca5e4f
Last active Jan 16, 2022
Getting Started with Redis using Docker Container
View gist:6891f1562b09182eabf16d8650ca5e4f
Redis is basically an open source, in-memory, data structure store that can be used as a cache, primary database and message broker. It is a multi-model database that supports search, graph, real-time streaming, analytics and many other use cases beyond that of a simple data store. With over 52,000+ GitHub stars, 20,000+ forks and over 500+ contributors, Redis is quite popular among the developers. Redis gives developers building applications the tools and information they need in a very efficient manner. Redis today can be deployed on-premises, across clouds, hybrid environments as well as over the Edge devices flawlessly.
# Ensure that Docker is installed
docker -v
# Create a dedicated Docker network
View gist:499652fb295d27cfc72c0c0904bf10f4
% docker-compose ps
NAME COMMAND SERVICE STATUS PORTS
compose-adapter-1 "/adapter/redis-ts-a…" adapter running
compose-grafana-1 "/run.sh" grafana running 0.0.0.0:3000->3000/tcp
compose-prometheus-1 "/bin/prometheus - c…" prometheus running 0.0.0.0:9090->9090/tcp
compose-redis-1 "docker-entrypoint.s…" redis running 0.0.0.0:6379->6379/tcp
@ajeetraina
ajeetraina / gist:efe01e4282fbfa59f18d38c36b57488f
Created Jan 14, 2022
Docker Compose for Monitoring Prometheus and Grafana
View gist:efe01e4282fbfa59f18d38c36b57488f
version: '3'
services:
prometheus:
image: "prom/prometheus:v2.8.0"
command: [" - config.file=/prometheus.yml"]
volumes:
- ./prometheus.yaml:/prometheus.yml
ports:
- 9090:9090
adapter:
@ajeetraina
ajeetraina / gist:35a69298c854826d1062292b038943d0
Created Dec 7, 2021
Rate Limiting using Go over OpenShift Sandbox
View gist:35a69298c854826d1062292b038943d0
98 lines
Cloning "https://github.com/redis-developer/basic-redis-rate-limiting-demo-go-lang" ...
Commit: 0fae74a58a4a90c0c375f5b9125ca141933ef8ee (Added)
Author: ajeetraina <ajeetraina@gmail.com>
Date: Wed Aug 25 07:47:10 2021 +0530
time="2021-12-07T10:29:49Z" level=info msg="Not using native diff for overlay, this may cause degraded performance for building images: kernel has CONFIG_OVERLAY_FS_REDIRECT_DIR enabled"
I1207 10:29:49.472081 1 defaults.go:102] Defaulting to storage driver "overlay" with options [mountopt=metacopy=on].
Caching blobs under "/var/cache/blobs".
Pulling image golang ...