moved supercronic execution to roadrunner and minor adjustments

This commit is contained in:
pushrbx 2022-09-04 16:23:13 +01:00
parent e0b410feac
commit cf6659d6a8
2 changed files with 3 additions and 7 deletions

View File

@ -203,6 +203,8 @@ service:
command: "php /app/artisan queue:work --queue=high,low"
process_num: 1
restart_sec: 5
supercronic:
command: "supercronic /etc/supercronic/laravel"
# RoadRunner internal container configuration (docs: https://github.com/spiral/endure).
endure:

View File

@ -38,18 +38,12 @@ services:
web:
<<: *jikan_rest
command: rr serve -c .rr.local.unix.yaml
ports:
- '8080:8080/tcp'
- '8443:8443/tcp'
healthcheck:
test: [ 'CMD-SHELL', 'wget --spider -q "http://127.0.0.1:8082/health?plugin=http&plugin=rpc"' ]
test: [ 'CMD-SHELL', 'wget --spider -q "http://127.0.0.1:2114/health?plugin=http"' ]
interval: 2s
timeout: 2s
# todo: integrate this in a worker class and configure road runner to allocate it when the web container starts
queue:
<<: *jikan_rest
command: php /app/artisan queue:work --memory=256 --sleep=1
cron:
<<: *jikan_rest