Implement a comprehensive authentication infrastructure designed for developers building SaaS and AI applications. This platform provides everything needed to manage user identities and scale to complex, multi-tenant architectures without accumulating security debt.
Take advantage of advanced authentication flows tailored for any use case:
Rely on an open-source, SOC 2 Type II certified foundation supporting OIDC and OAuth 2.1. With support for over 20 frameworks, you can focus on building your core product while maintaining robust security.
# This compose file is for demonstration only, do not use in prod.
services:
app:
depends_on:
postgres:
condition: service_healthy
image: svhd/logto:${TAG-latest}
entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"]
ports:
- 3001:3001
- 3002:3002
environment:
- TRUST_PROXY_HEADER=1
- DB_URL=postgres://postgres:p0stgr3s@postgres:5432/logto
# Mandatory for GitPod to map host env to the container, thus GitPod can dynamically configure the public URL of Logto;
# Or, you can leverage it for local testing.
- ENDPOINT
- ADMIN_ENDPOINT
postgres:
image: postgres:17-alpine
user: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: p0stgr3s
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 5s
timeout: 5s
retries: 5POSTGRES_USER: postgres
POSTGRES_PASSWORD: p0stgr3sAuto-fetched about 2 hours ago
Auto-fetched about 2 hours ago