Skip to main content

Overview

Docker Compose provides declarative configuration and easier management of Antigravity Manager containers. This method is ideal for persistent deployments on servers and NAS devices.

Prerequisites

  • Docker Engine 20.10+
  • Docker Compose V2 (or docker-compose 1.29+)
  • 1GB RAM recommended
  • Port 8045 available

Quick Start

Step 1: Get the Configuration

Step 2: Configure Environment

Create a .env file in the same directory:
.env
Security: Generate strong, unique values for API_KEY and WEB_PASSWORD. Never commit .env to version control.

Step 3: Start Services

Step 4: Verify Installation

Docker Compose Configuration

Basic Configuration

docker-compose.yml

Advanced Configuration

docker-compose.advanced.yml

Environment Variables

string
required
API key for authenticating AI requests.Default in compose: test (change this!)
string
Separate password for Web UI login. Falls back to API_KEY if not set.
string
default:"info"
Options: debug, info, warn, error
boolean
default:"true"
In host network mode, binds to 127.0.0.1 if true, 0.0.0.0 if false.
integer
default:"104857600"
Maximum request size in bytes (default: 100MB)
string
Public URL for OAuth callbacks (e.g., behind reverse proxy)
string
default:"AllExceptHealth"
Authentication mode: Off, Strict, AllExceptHealth, Auto

Network Modes

Best for: Direct localhost access, minimal overhead
Host network mode doesn’t work on macOS/Windows Docker Desktop.
Access at: http://localhost:8045

Volume Management

Benefits:
  • Docker-managed lifecycle
  • Easy backup/restore
  • Platform-independent

Bind Mount

Benefits:
  • Direct file access
  • Easy manual editing
  • Shared across containers

Managing Services

Health Checks

Add health checks to monitor service availability:
Check health status:

Multi-Service Example

Deploy with Nginx reverse proxy:
docker-compose.full.yml

Backup and Restore

Backup Data

Restore Data

Local Development Build

For local development with pre-built frontend:
docker-compose.localdist.yml
Build and run:

Troubleshooting

Change the host port mapping:
Fix permissions:
Ensure:
  1. Using bridge network mode (not host)
  2. ABV_BIND_LOCAL_ONLY=false
  3. Firewall allows port 8045
  4. Access via host IP: http://192.168.x.x:8045
Check logs:
Disable restart to debug:

Next Steps

Headless Mode Features

Learn about headless-specific configuration options

Reverse Proxy Setup

Add HTTPS and custom domain with Nginx/Caddy

API Integration

Connect Claude CLI, OpenCode, and other clients

Monitoring

Set up logging and monitoring for production