feat: add local crontab scheduler service
This commit is contained in:
@@ -15,6 +15,22 @@ services:
|
||||
networks:
|
||||
- sport-era-dev
|
||||
|
||||
scheduler:
|
||||
image: registry.cn-guangzhou.aliyuncs.com/likeadmin/php:8.0.30.3-fpm
|
||||
working_dir: /likeadmin_php/server
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
command: >-
|
||||
sh -c "while true; do php think crontab; sleep 60; done"
|
||||
volumes:
|
||||
- ../server:/likeadmin_php/server
|
||||
networks:
|
||||
- sport-era-dev
|
||||
|
||||
nginx:
|
||||
image: registry.cn-guangzhou.aliyuncs.com/likeadmin/nginx:1.23.1
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user