2025-10-19 18:00:01 -04:00
2025-10-16 21:16:51 -04:00
2025-10-15 00:58:28 -04:00
2025-10-15 22:03:47 -04:00
2025-10-15 01:25:18 -04:00
2025-10-15 01:25:18 -04:00
2025-10-15 22:03:47 -04:00
2025-10-03 22:10:22 -04:00
2025-10-15 00:58:28 -04:00
2025-10-18 23:11:34 -04:00
2025-10-15 01:25:18 -04:00
2025-10-15 00:58:28 -04:00
2025-02-15 23:04:54 -05:00
2025-10-17 20:52:58 -04:00
2025-09-29 22:20:23 -04:00
2025-10-14 22:36:40 -04:00
2025-10-18 22:21:33 -04:00

Logo

api-gateway Python License Release Last Commit GitHub issues

Doorman API Gateway

A lightweight, Python-based API gateway for managing REST, SOAP, GraphQL, gRPC, and AI APIs. No low-level language expertise required.

Example

Key Features

  • Multi-Protocol Support: REST, SOAP, GraphQL, gRPC, and AI APIs
  • Security: User management, authentication, authorization, roles & groups
  • Traffic Control: Rate limiting, throttling, dynamic routing, credits
  • Caching & Storage: Redis caching, MongoDB integration, or in memory
  • Validation: Request payload validation and logging

Quick Start

Prerequisites

  • Docker installed
  • Environment file (.env) at repo root (use ./backend-services/.env.example as template)

Run with Docker

# Build the image
docker build -t doorman:latest .

# Run the container
docker run --rm --name doorman \
  -p 3001:3001 -p 3000:3000 \
  --env-file .env \
  doorman:latest

Access Points:

Run in Background

# Start detached
docker run -d --name doorman \
  -p 3001:3001 -p 3000:3000 \
  --env-file .env \
  doorman:latest

# View logs
docker logs -f doorman

# Stop container
docker stop doorman

Configuration

Required Environment Variables

  • DOORMAN_ADMIN_EMAIL: Admin user email
  • DOORMAN_ADMIN_PASSWORD: Admin password
  • JWT_SECRET_KEY: Secret key for JWT tokens

High Availability Setup

For production/HA environments:

  • Set MEM_OR_EXTERNAL=REDIS
  • Configure Redis connection details in .env

Custom Ports

# Change web client port
docker run --rm --name doorman \
  -p 3001:3001 -p 3002:3002 \
  -e WEB_PORT=3002 \
  --env-file .env \
  doorman:latest

Alternative: Mount Environment Folder

# Create env folder with config files
mkdir -p env

# Run with mounted env folder
docker run --rm --name doorman \
  -p 3001:3001 -p 3000:3000 \
  -v "$(pwd)/env:/env:ro" \
  doorman:latest

Testing

Testing Against Docker

When testing from your host machine against Doorman running in Docker:

# Verbose output
make live-docker

# Quiet output
make liveq-docker

# Manual environment variable
DOORMAN_IN_DOCKER=1 make live

This configures test servers to use host.docker.internal (Mac/Windows) or 172.17.0.1 (Linux).

Repository Structure

doorman/
├── backend-services/    # Python gateway core, routes, services, tests
├── web-client/         # Next.js frontend
├── docker/             # Container entrypoint and scripts
├── user-docs/          # Documentation and guides
├── scripts/            # Helper scripts (preflight, coverage, maintenance)
└── generated/          # Local development artifacts

Security Notes

  • Frontend only exposes NEXT_PUBLIC_* variables to the browser
  • Never pass secrets to frontend build args
  • Backend loads environment at runtime from --env-file or /env/*.env
  • Platform/injected env variables take precedence over repo files

License

Copyright Doorman Dev, LLC

Licensed under the Apache License 2.0 - see LICENSE

Disclaimer

Use at your own risk. By using this software, you agree to the Apache 2.0 License and any annotations in the source code.


We welcome contributors and testers!

Description
A Python Cloud Native Gateway for AI, REST, SOAP, GraphQL, and gRPC APIs
Readme Apache-2.0 6.5 MiB
Languages
Python 70.2%
TypeScript 24.3%
CSS 4%
Shell 0.6%
JavaScript 0.5%
Other 0.3%