1
0
Fork 0
mirror of https://github.com/archtechx/tenancy-queue-tester.git synced 2025-12-12 17:34:03 +00:00

initial commit

This commit is contained in:
Samuel Štancl 2024-12-31 06:35:15 +01:00
commit 52d95e9370
12 changed files with 525 additions and 0 deletions

26
docker-compose.yml Normal file
View file

@ -0,0 +1,26 @@
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