#Mongo DB: Local Development with Transactions

2 messages · Page 1 of 1 (latest)

coral acorn
#

Hey! I would like to utilize Payload's transaction features in my app. For this to work in development, I need a running Mongo DB that supports transactions. There are various examples online, that didn't work.

How do you set this up? Currently, this is my docker setup with MongoDB, MinIO and Inbucket:

version: '3.8'
services:
  mongodb:
    image: mongo:latest
    ports:
      - '27017:27017'
    volumes:
      - mongodb-data:/data/db

  minio:
    image: minio/minio:latest
    ports:
      - "9000:9000"
      - "32911:32911"
    environment:
      MINIO_ROOT_USER: admin
      MINIO_ROOT_PASSWORD: password
    command: server /data --console-address ":32911"
    volumes:
      - minio-data:/data

  inbucket:
    image: inbucket/inbucket:latest
    ports:
      - "2500:2500" # SMTP
      - "9001:9000" # Web interface
    environment:
      INBUCKET_SMTP_ADDR: "0.0.0.0:2500"
      INBUCKET_WEB_ADDR: "0.0.0.0:9000"

volumes:
  mongodb-data:
  minio-data:
junior oliveBOT