Friday, March 4, 2022

Deploy run RethinkDB On Docker | Docker-Compose | Rocky Linux 8.5

 in This Tutorial you will Learn " How To run RethinkDB with Docker | Docker-Compose | Rocky Linux 8.5"

Docker is a software platform that allows you to build, test, and deploy applications quickly.
RethinkDB is the open-source, scalable database that makes building realtime apps dramatically easier.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y ; docker-compose --version ; docker --version

mkdir -p ~/apps/rethinkdb/data
docker run -d \
    --name my-rethinkdb \
    -p 8081:8080 \
    -v ~/apps/rethinkdb/data:/data \
    rethinkdb:2.4

docker ps
docker exec -it my-rethinkdb /bin/bash
rethinkdb -v
docker stop my-rethinkdb
docker rm my-rethinkdb
_________________________________________________________________________________________
nano docker-compose.yaml
version: '3.9'

services:
  rethinkdb:
    image: rethinkdb:2.4
    ports:
      - 8081:8080
    volumes:
      - ~/apps/rethinkdb/data:/app
docker-compose up -d
docker-compose ps
docker-compose exec rethinkdb /bin/bash
rethinkdb -v
_________________________________________________________________________________________


No comments:

Post a Comment