platform/drivers/rethinkdb/doc
2024-12-14 20:56:05 -07:00
..
docker-compose-rethinkdb.yml refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00
README.md refactor: refactoring common utils, routes > routing, db drivers 2024-12-14 20:56:05 -07:00

Running RethinkDb in container

Use the following command to run rethinkDb as services using the provided docker compose file. Rancher or Docker need to be installed. Replace nerdctl with docker if using Docker.

Installation

  • Starting the rethinkDB container

    nerdctl compose -f docker-compose-rethinkdb.yml -p rethink up -d
    
  • Stopping the rethinkDB container

    nerdctl compose -f docker-compose-rethinkdb.yml -p rethink stop
    nerdctl compose -f docker-compose-rethinkdb.yml -p rethink down
    
  • Checking the rethinkDB container log

    nerdctl logs rethink-rethinkdb-1 -f
    

Compose file

services:
  rethinkdb:
    image: rethinkdb:latest
    restart: "no"
    ports:
      - "8080:8080"
      - "28015:28015"
      - "29015:29015"
    volumes:
      - "rethinkdb:/data"
    networks:
      - appnet

volumes:
  rethinkdb:
    driver: local

networks:
  appnet: