---
title: "Docker Standalone Deployment"
description: "Run AuthSetu on your own cloud infrastructure, bare metal, or VPC using Docker Compose."
order: 1
category: "Deployment"
updated: "2026-10-13"
---

# Docker Standalone Deployment

AuthSetu is architected for sovereign self-hosting on AWS, Google Cloud, Azure, or private Indian datacenter infrastructure.

## Docker Compose Setup

Create a `docker-compose.yml` file:

```yaml
version: '3.8'

services:
  postgres:
    image: postgres:16-alpine
    environment:
      POSTGRES_USER: authsetu
      POSTGRES_PASSWORD: secretpassword
      POSTGRES_DB: authsetu_platform
    ports:
      - '5432:5432'
    volumes:
      - pgdata:/var/lib/postgresql/data

  redis:
    image: redis:7-alpine
    ports:
      - '6379:6379'

  api:
    image: ghcr.io/authsetu/backend:latest
    ports:
      - '8080:8080'
    environment:
      DATABASE_URL: postgres://authsetu:secretpassword@postgres:5432/authsetu_platform?sslmode=disable
      REDIS_URL: redis://redis:6379
      MASTER_KEY: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
      JWT_SECRET: supersecretjwtkey
    depends_on:
      - postgres
      - redis

volumes:
  pgdata:
```

## Running the Stack

```bash
docker compose up -d
```
