shipping/docker/roadrunner.yaml
2025-01-14 22:09:35 +01:00

54 lines
1.1 KiB
YAML

version: '3'
rpc:
# RPC interface for internal communication
listen: tcp://127.0.0.1:6001
server:
# Command to start Laravel Octane server
command: "php artisan octane:start --server=roadrunner --host=0.0.0.0 --port=9001"
http:
# HTTP server configuration
address: 0.0.0.0:9001
pool:
# Worker pool configuration
num_workers: 8
max_jobs: 1000
allocate_timeout: 60s
destroy_timeout: 60s
static:
# Serve static files
dir: ./public
forbid: [ ".php", ".env", ".htaccess" ]
jobs:
num_pollers: 64
timeout: 60
pipeline_size: 100000
driver: redis
redis:
addr: laravel-redis:6379 # Redis host and port
stream: [ "fetch_tracking", "callback_retry", "default", "storage_management" ]
timeout: 10s # Fetch timeout
prefetch: 10
pool:
num_workers: 10
allocate_timeout: 60s
destroy_timeout: 60s
logs:
# Logging configuration
level: debug
mode: development
metrics:
# Metrics for monitoring
address: 0.0.0.0:2112
health:
# Health check endpoint
address: 0.0.0.0:2113