Sign inSign up

slotix/dbs-api

By slotix

•Updated over 2 years ago
Archived

DBConvert Streams API

Image
Databases & storage
0

1.2K

slotix/dbs-api repository overview

"DBConvert Streams"⁠ is distributed, event-driven replication for databases.

The DBS platform consists of the following parts:

  • DBS API Server
  • DBS Source Reader
  • DBS Target Writer

DBS API is one of the integral components of the DBConvert Streams platform. DBConvert Streams API server is used to get requests from clients to manage streams and communicate with other DBS Services like source readers and target writers.

DBS API instance listens on port 8020 by default.

Since DBConvert Streams depends on multiple services, the best way to start docker containers using Docker Compose⁠.

Here is a simple example of docker-compose configuration for staring DBConvert Streams.

version: "3.9"
services:
  dbs-api:
    container_name: api
    image: slotix/dbs-api
    entrypoint:
      - ./dbs-api
      - --nats=nats:4222
      - --source=source-reader:8021
      - --target=target-writer:8022
    ports:
      - 8020:8020
    depends_on:
      - nats

  dbs-source-reader:
    container_name: source-reader
    image: slotix/dbs-source-reader
    entrypoint:
      - ./dbs-source-reader
      - --nats=nats:4222
    ports:
      - 8021:8021
    depends_on:
      - dbs-api

  dbs-target-writer:
    container_name: target-writer
    image: slotix/dbs-target-writer
    entrypoint:
      - ./dbs-target-writer
      - --nats=nats:4222
      - --prometheus=http://prometheus:9090
    ports:
      - 8022:8022
    depends_on:
      - dbs-source-reader

  nats:
    container_name: nats
    image: nats
    entrypoint: /nats-server
    command: "--jetstream -m 8222 --store_dir /data/nats-server"
    ports:
      - 4222:4222
      - 8222:8222
    # volumes:
    #   - ./_storage/nats:/data/nats-server/jetstream

  prometheus:
    image: slotix/dbs-prometheus:latest
    container_name: prom
    user: root
    ports:
      - 9090:9090
    # volumes:
    #   - ./_storage/prometheus:/prometheus

Copy content of the docker-compose config above and save it as docker-compose.yml file.

⁠Run

docker-compose up

⁠Examples

For actual examples and configurations, refer to the public DBConvert Streams Github repository⁠

Tag summary

Content type

Image

Digest

sha256:17f8f164e…

Size

6.2 MB

Last updated

over 2 years ago

docker pull slotix/dbs-api