mirror of
https://github.com/archtechx/tenancy-queue-tester.git
synced 2025-12-12 08:24:05 +00:00
26 lines
557 B
YAML
Executable file
26 lines
557 B
YAML
Executable file
services:
|
|
redis:
|
|
image: redis:7-bookworm
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 2
|
|
start_period: 1s
|
|
|
|
queue:
|
|
image: tenancy-queue-test-cli
|
|
working_dir: /var/www/html
|
|
user: www-data
|
|
command: php artisan queue:work -vvv
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pidof php"]
|
|
interval: 30s
|
|
timeout: 2s
|
|
retries: 2
|
|
start_period: 2s
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy
|
|
volumes:
|
|
- ./src:/var/www/html
|