services:
  mongo:
    image: mongo:8.2.2-noble
    environment:
      MONGO_INITDB_ROOT_USERNAME: sigma
      MONGO_INITDB_ROOT_PASSWORD: supersecret
      MONGO_INITDB_DATABASE: sigma
    ports:
      - 27017:27017
    volumes:
      - mongo-data:/data/db

  postgres:
    image: postgres:18.1-alpine
    environment:
      POSTGRES_USER: sigma
      POSTGRES_PASSWORD: supersecret
      POSTGRES_DB: sigma
    ports:
      - 5432:5432
    volumes:
      - postgres-data:/var/lib/postgresql/data

volumes:
  postgres-data:
  mongo-data:
