forked from nghuyong/WeiboSpider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (87 loc) · 2.04 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
version: '3'
services:
portainer:
image: portainer/portainer
command: -H unix:///var/run/docker.sock
ports:
- 7000:9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data/portainer:/data
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
mongodb:
image: mongo
volumes:
- ./data/mongo:/data/db
ports:
- 7001:27017
mongo-express:
image: mongo-express
ports:
- 7002:8081
environment:
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_MONGODB_PORT: 27017
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: admin
depends_on:
- mongodb
redis:
image: redis
command: redis-server
ports:
- 7003:6379
volumes:
- ./data/redis:/data
account:
image: registry.cn-hangzhou.aliyuncs.com/weibospider/account
volumes:
- ./weibospider:/app
depends_on:
- mongodb
- redis
stdin_open: true
tty: true
weibo-spider-user:
image: registry.cn-hangzhou.aliyuncs.com/weibospider/spider
volumes:
- ./weibospider:/app
depends_on:
- mongodb
- redis
command: python run_spider.py user
weibo-spider-comment:
image: registry.cn-hangzhou.aliyuncs.com/weibospider/spider
volumes:
- ./weibospider:/app
depends_on:
- mongodb
- redis
command: python run_spider.py comment
weibo-spider-fan:
image: registry.cn-hangzhou.aliyuncs.com/weibospider/spider
volumes:
- ./weibospider:/app
depends_on:
- mongodb
- redis
command: python run_spider.py fan
weibo-spider-follow:
image: registry.cn-hangzhou.aliyuncs.com/weibospider/spider
volumes:
- ./weibospider:/app
depends_on:
- mongodb
- redis
command: python run_spider.py follow
weibo-spider-tweet:
image: registry.cn-hangzhou.aliyuncs.com/weibospider/spider
volumes:
- ./weibospider:/app
depends_on:
- mongodb
- redis
command: python run_spider.py tweet