mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
moved supercronic execution to roadrunner and minor adjustments
This commit is contained in:
parent
e0b410feac
commit
cf6659d6a8
2
.rr.yaml
2
.rr.yaml
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user