feat: include crawler in development compose

This commit is contained in:
hajimi
2026-08-01 17:37:56 +08:00
parent ebbcb7f007
commit 597417bf08
2 changed files with 34 additions and 0 deletions
+22
View File
@@ -27,6 +27,28 @@ services:
- ../server:/likeadmin_php/server
- ./.env.server:/likeadmin_php/server/.env:ro
crawler:
container_name: sport-era-crawler
image: sport-era-crawler:latest
build:
context: ./crawler
dockerfile: Dockerfile
restart: unless-stopped
env_file:
- ./.env.docker
environment:
TZ: Asia/Shanghai
DQD_CONFIG_PATH: /app/config/settings.yaml
DQD_TASKS_FILE: /app/config/crawler_tasks.yaml
DQD_LOCK_DIR: /app/data/locks
volumes:
- ./crawler/logs:/app/logs
- ./crawler/data:/app/data
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- sport-era-dev
nginx:
image: registry.cn-guangzhou.aliyuncs.com/likeadmin/nginx:1.23.1
restart: unless-stopped