This repository has been archived by the owner on Feb 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
65 lines (64 loc) · 1.61 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
version: "3"
networks:
scrapyd_service_net:
driver: bridge
services:
scrapyd_service_master:
build:
context: .
dockerfile: docker/Dockerfile
container_name: master
environment:
- identity=master
- node=master
- slaves=["slave001:6800","slave002:6800"]
- codepath=/app/spider/DataCrawl
- branch=develop
- bind_address=0.0.0.0
networks:
- scrapyd_service_net
ports:
- "6800:6800"
volumes:
- ./DataCrawl:/app/spider/DataCrawl
- ./scrapyd_service:/app/source/scrapyd_service
- ./logs/master:/app/source/logs
restart: always
scrapyd_service_slave_1:
build:
context: .
dockerfile: docker/Dockerfile
container_name: slave001
environment:
- identity=slave
- node=slave001
- slaves=[]
- codepath=/app/spider/DataCrawl
- branch=develop
- bind_address=0.0.0.0
networks:
- scrapyd_service_net
volumes:
- ./DataCrawl:/app/spider/DataCrawl
- ./scrapyd_service:/app/source/scrapyd_service
- ./logs/slave001:/app/source/logs
restart: always
scrapyd_service_slave_2:
build:
context: .
dockerfile: docker/Dockerfile
container_name: slave002
environment:
- identity=slave
- node=slave002
- slaves=[]
- codepath=/app/spider/DataCrawl
- branch=develop
- bind_address=0.0.0.0
networks:
- scrapyd_service_net
volumes:
- ./DataCrawl:/app/spider/DataCrawl
- ./scrapyd_service:/app/source/scrapyd_service
- ./logs/slave002:/app/source/logs
restart: always