Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to modify the Docker file to install and configure PostgreSQL instead of MongoDB? #388

Open
yogeshvachhani opened this issue May 20, 2023 · 1 comment

Comments

@yogeshvachhani
Copy link

I want to try out OpenBlocks.

I have setup Docker but when I checked the yml file I observed it installs MongoDB. But instead of MongoDB I want to use PostgreSQL and MySQL.

How to add these two RDBMS and build the docker image?

@as-shura
Copy link

as-shura commented Jul 4, 2023

Have a look at ferretdb. It is a layer on top of Postgres written in Go which is a dead replacement for MongoDB.

version: "3"

services:


  ferretdb:
    image: ghcr.io/ferretdb/ferretdb
    restart: on-failure
    ports:
      - 27017:27017
    expose:
      - 27017
    environment:
      - FERRETDB_POSTGRESQL_URL=postgres://postgres:5432/ferretdb
      - FERRETDB_HANDLER=pg
    networks:
      - databases


networks:
  databases:
    external:
      name: databases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants