The BillRun image runs php-fpm + nginx (web mode) by default.
To run a container as a worker instead, set the BILLRUN_ROLE environment variable to worker.
BILLRUN_ROLE |
Processes started under supervisor |
unset / web (default) |
php-fpm + nginx |
worker |
billrun worker only |
docker run -e BILLRUN_ROLE=worker billrun/billrun
Run web and worker from the same image, side by side:
services:
billrun-web:
image: billrun/billrun
# BILLRUN_ROLE unset → php-fpm + nginx
# ... other config
billrun-worker:
image: billrun/billrun
environment:
BILLRUN_ROLE: worker
# ... other config