Spaces:
Runtime error
Runtime error
File size: 508 Bytes
21e639d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
version: "3"
services:
scraptt:
build: .
environment:
- PYTHON_ENV=production
depends_on:
- redis
links:
- redis
# define your crawler here!
command: bash -c "scrapy crawl ptt -a boards=Soft_Job -a index_from=1500 -a index_to=1500 -a ip_cache=True"
volumes:
- "./data:/app/data"
redis:
image: redis:7
restart: always
healthcheck:
test: "redis-cli ping"
interval: 3s
timeout: 3s
retries: 5
start_period: 5s
|