This repository has been archived by the owner on Jun 14, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 142
/
docker-compose.yml
107 lines (97 loc) · 2.48 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: '3.1'
services:
scrapyd:
build: ./scrapyd
image: house-renting/scrapyd
container_name: scrapyd
networks:
- localhost
ports:
- 6800:6800
depends_on:
- redis
- elastic
volumes:
- ./data:/house-renting/data
entrypoint: /bin/true
crawler:
build: ./crawler
image: house-renting/crawler
container_name: crawler
networks:
- localhost
volumes:
- ./data:/house-renting/data
- ./data/images:/house-renting/data/images
depends_on:
- redis
- elastic
entrypoint: /bin/true
douban:
image: house-renting/crawler
container_name: douban
networks:
- localhost
volumes:
- ./data/images:/house-renting/data/images
depends_on:
- crawler
entrypoint: scrapy crawl douban
"58":
image: house-renting/crawler
container_name: "58"
networks:
- localhost
volumes:
- ./data/images:/house-renting/data/images
depends_on:
- crawler
entrypoint: scrapy crawl 58
lianjia:
image: house-renting/crawler
container_name: lianjia
networks:
- localhost
volumes:
- ./data/images:/house-renting/data/images
depends_on:
- crawler
entrypoint: scrapy crawl lianjia
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.4
container_name: elasticsearch
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
networks:
- localhost
ports:
- 9200:9200
volumes:
- ./data/elastic:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana-oss:6.2.4
container_name: kibana
networks:
- localhost
ports:
- 5601:5601
environment:
- ELASTICSEARCH_URL=http://elastic:9200
depends_on:
- elastic
redis:
image: redis
container_name: redis
networks:
- localhost
ports:
- 6379:6379
volumes:
- ./data/redis:/data
networks:
localhost: