feat: add local crontab scheduler service

This commit is contained in:
hajimi
2026-08-01 16:08:01 +08:00
parent 759ba34227
commit 5633c9b51f
2 changed files with 18 additions and 0 deletions
+16
View File
@@ -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