Docker Compose provides a declarative way to deploy RiftRelay with all configuration in version-controlled files.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/renja-g/RiftRelay/llms.txt
Use this file to discover all available pages before exploring further.
Quick Setup
The fastest way to get started is using the automated setup script:The script downloads
docker-compose.yml and .env.example, prompts for your Riot API token, and starts RiftRelay automatically.Manual Setup
Configuration Files
docker-compose.yml
The official docker-compose.yml includes production-ready settings:The compose file uses
${RIFTRELAY_IMAGE:-renjag/riftrelay:latest} which allows you to override the image in your .env file or use the default Docker Hub image..env File
Create a.env file in the same directory as docker-compose.yml:
Service Configuration
Restart Policy
Init System
Health Checks
- interval: Check every 15 seconds
- timeout: Fail if check takes longer than 3 seconds
- retries: Mark unhealthy after 3 consecutive failures
- start_period: Grace period of 20 seconds after container starts
Security Settings
- read_only: Container filesystem is immutable
- tmpfs: Writable
/tmpin memory (64MB limit) - cap_drop: Drops all Linux capabilities
- no-new-privileges: Prevents gaining additional privileges
Graceful Shutdown
SHUTDOWN_TIMEOUT (20s) to ensure clean shutdown.
Environment Variables
All RiftRelay configuration can be set in the.env file:
| Variable | Default | Description |
|---|---|---|
RIOT_TOKEN | required | Riot API token (comma-separated for multiple) |
RIFTRELAY_IMAGE | renjag/riftrelay:latest | Docker image to use |
PORT | 8985 | Server port |
QUEUE_CAPACITY | 2048 | Maximum queued requests |
ADMISSION_TIMEOUT | 5m | Max wait time in queue |
SHUTDOWN_TIMEOUT | 20s | Graceful shutdown timeout |
ENABLE_METRICS | false | Enable /metrics endpoint |
ENABLE_PPROF | false | Enable pprof endpoints |
ENABLE_SWAGGER | true | Enable Swagger UI |
See the Configuration page for all available options.
Managing the Service
Starting and Stopping
Viewing Logs
Updating
Docker Compose automatically recreates containers when the image changes.
Production Deployment
Resource Limits
Add resource limits to yourdocker-compose.yml:
Multiple Instances
Scale the service for higher throughput:Using Multiple Tokens
For better throughput with multiple tokens, set them in.env:
Monitoring
Enable metrics and health checks:Troubleshooting
Service won’t start
Check service status:- Missing or invalid
RIOT_TOKENin.env - Port 8985 already in use
- Syntax errors in
docker-compose.yml
Configuration not applying
Recreate containers after changing.env:
Permission errors
The container runs as non-root userapp. If you mount volumes, ensure correct permissions:
Port conflicts
Change the host port indocker-compose.yml:
Next Steps
Configuration
Explore all configuration options
Usage
Learn how to use RiftRelay