Docker Deployment
For server deployments, CI/CD pipelines, or isolated environments, deploying AIO Proxy via container is fast and clean.
Official Image: ghcr.io/aio-proxy/aio-proxy:latest
1. Quick Start via Docker Run
Binding to 0.0.0.0
Inside a Docker container, you must pass --host 0.0.0.0 in the startup command so external traffic can map to port 9317. The config schema forbids setting host to non-loopback addresses directly in config.jsonc, so --host 0.0.0.0 must be provided as a CLI argument.
2. Docker Compose (Recommended)
Save the following content as docker-compose.yml:
docker-compose.yml
Start the Container
Check Logs
3. Directory Persistence
Mounting ~/.aio-proxy:/root/.aio-proxy ensures persistent storage of:
config.jsonc: Server configuration, provider definitions, and routing rules.state.db: SQLite database recording request traces, usage metrics, and historical logs.tokens/: Token storage and refresh metadata for OAuth providers.