Installation

Deploy Authority using Docker for production environments.

Prerequisites

  • Docker 20.10+

  • Docker Compose 2.0+

  • 1GB RAM minimum

  • PostgreSQL (included in docker-compose)

Quick Start

git clone https://github.com/azutoolkit/authority.git
cd authority
docker-compose up -d

Authority is now running at http://localhost:4000.

Production Configuration

1. Create Environment File

Create a .env file:

2. Generate Secret Key

3. Docker Compose File

Create docker-compose.yml:

4. Start Services

Reverse Proxy Setup

Nginx Configuration

Traefik Configuration

Database Migrations

Run migrations manually if needed:

Backup and Restore

Backup Database

Restore Database

Monitoring

Health Check

View Logs

Resource Usage

Scaling

For high availability, run multiple Authority instances behind a load balancer:

circle-exclamation

Troubleshooting

Container won't start

Check logs:

Database connection failed

Verify PostgreSQL is running:

Port already in use

Change the port:

Next Steps

Last updated

Was this helpful?