diff --git a/compose.yaml b/compose.yaml index 6bd6210..06e98bc 100644 --- a/compose.yaml +++ b/compose.yaml @@ -24,6 +24,27 @@ services: depends_on: - pgsql - redis + laravel.queue: + build: + context: './vendor/laravel/sail/runtimes/8.5' + dockerfile: Dockerfile + args: + WWWGROUP: '${WWWGROUP}' + image: 'sail-8.5/app' + # Nothing was processing MarkBookingPaid/MarkBookingRefunded — a + # confirmed/cancelled booking's status only ever flipped once + # someone happened to run `sail artisan queue:work` by hand. + command: php artisan queue:work --tries=3 --sleep=1 + environment: + WWWUSER: '${WWWUSER}' + LARAVEL_SAIL: 1 + volumes: + - '.:/var/www/html' + networks: + - sail + depends_on: + - pgsql + - redis pgsql: image: 'postgres:18-alpine' ports: