2023-05-14 04:56:49 -05:00
|
|
|
version: '3.0'
|
2022-08-21 06:19:27 -05:00
|
|
|
|
2022-08-26 07:59:27 -05:00
|
|
|
rpc:
|
|
|
|
listen: tcp://127.0.0.1:6001
|
|
|
|
|
2022-08-21 06:19:27 -05:00
|
|
|
server:
|
|
|
|
command: 'php -dopcache.enable_cli=1 -dopcache.validate_timestamps=0 ../../bin/roadrunner-worker.php'
|
|
|
|
|
|
|
|
http:
|
2023-06-04 02:07:41 -05:00
|
|
|
address: '0.0.0.0:${PORT:-8080}'
|
2022-08-27 10:27:54 -05:00
|
|
|
middleware: ['static']
|
2022-08-21 06:19:27 -05:00
|
|
|
static:
|
2022-08-27 10:17:37 -05:00
|
|
|
dir: '../../public'
|
|
|
|
forbid: ['.php', '.htaccess']
|
2022-08-21 06:19:27 -05:00
|
|
|
pool:
|
2023-06-04 02:07:41 -05:00
|
|
|
num_workers: ${WEB_WORKER_NUM:-0}
|
2022-08-21 06:19:27 -05:00
|
|
|
|
|
|
|
jobs:
|
2022-08-27 10:17:37 -05:00
|
|
|
timeout: 300 # 5 minutes
|
2022-08-21 06:19:27 -05:00
|
|
|
pool:
|
2023-06-04 02:07:41 -05:00
|
|
|
num_workers: ${TASK_WORKER_NUM:-0}
|
2022-08-26 07:59:27 -05:00
|
|
|
consume: ['shlink']
|
|
|
|
pipelines:
|
|
|
|
shlink:
|
|
|
|
driver: memory
|
|
|
|
config:
|
|
|
|
priority: 10
|
|
|
|
prefetch: 10
|
2022-08-21 06:19:27 -05:00
|
|
|
|
|
|
|
logs:
|
|
|
|
mode: production
|
|
|
|
channels:
|
|
|
|
http:
|
2023-05-07 06:18:19 -05:00
|
|
|
mode: 'off' # Disable logging as Shlink handles it internally
|
2022-08-21 06:19:27 -05:00
|
|
|
server:
|
|
|
|
level: debug # Everything written to worker stderr is logged
|