-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (30 loc) · 1017 Bytes
/
docker-compose.yml
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
29
30
31
32
33
34
version: '3.6'
services:
# expose my spiders via API on port 9080
# http://scrapyrt.readthedocs.io/en/latest/api.html
# This image still uses python2
#scrapyrt:
# image: scrapinghub/scrapyrt
# volumes:
# - ${PWD}:/scrapyrt/project
scrapyrt:
build:
context: ./build/scrapyrt
dockerfile: Dockerfile.scrapyrt
volumes:
# 2018-07-06 ${PWD} will not work if not in the repo root
- ${PWD}/scrapy-cr.justice.gov.lb:/scrapyrt/project
# useful for debugging
# apk --update add curl
# curl http://scrapyrt:9080/crawl.json \
# -d '{"request":{"url": "http://example.com", "meta": {"df_in": [{"register_number": "66942", "register_place": "Mount Lebanon"}]}}, "spider_name": "cr_justice_gov_lb_single"}'
#terminal:
# image: alpine
# sample app from
# https://docs.docker.com/engine/swarm/stack-deploy/#test-the-app-with-compose
web:
build:
context: ./build/web
dockerfile: Dockerfile.web
environment:
- SCRAPYRT=http://scrapyrt:9080