Deployment

Deploy Autional in production with Docker compose, Kubernetes, or self-hosted bare metal.

Docker Compose

git clone https://github.com/autional/authms
cd authms
# Production: use separate infra + services compose files
docker compose -f docker-compose.infra.yml -f docker-compose.monolith.yml up -d

Configuration

Key environment variables to set for production:

VariableDescriptionRequired
JWT_SECRETToken signing key (min 32 chars)Yes
PASSWORD_PEPPERPepper for password hashingYes
INTERNAL_API_KEYService-to-service authYes
PG_PASSWORDPostgreSQL passwordYes
REDIS_PASSWORDRedis passwordYes

SSL / TLS

For production, use Let's Encrypt or your CA. The gateway nginx handles SSL termination. See docker/nginx/certs/ for reference self-signed certificates.

Monitoring

Prometheus + Grafana dashboards are included for monitoring all 24 services. Alertmanager handles alert routing. OpenTelemetry tracing via Jaeger.

# Monitoring stack
docker compose -f docker-compose.monitoring.yml up -d
# Grafana: http://localhost:13000  (admin/admin)