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
- Clone Repository
- Download Compose File
Step 2: Configure Environment
Create a.env file in the same directory:
.env
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, errorboolean
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, AutoNetwork Modes
- Host Network (Linux Only)
- Bridge Network (All Platforms)
- Custom Network
Best for: Direct localhost access, minimal overheadAccess at:
http://localhost:8045Volume Management
Named Volume (Recommended)
- Docker-managed lifecycle
- Easy backup/restore
- Platform-independent
Bind Mount
- Direct file access
- Easy manual editing
- Shared across containers
Managing Services
Health Checks
Add health checks to monitor service availability: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
Troubleshooting
Port already in use
Port already in use
Change the host port mapping:
Permission denied on volume mount
Permission denied on volume mount
Fix permissions:
Cannot access from other devices on network
Cannot access from other devices on network
Ensure:
- Using bridge network mode (not host)
ABV_BIND_LOCAL_ONLY=false- Firewall allows port 8045
- Access via host IP:
http://192.168.x.x:8045
Container keeps restarting
Container keeps restarting
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