-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.production.yml
68 lines (64 loc) · 1.46 KB
/
docker-compose.production.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
version: '2.3'
services:
redis:
build:
context: containers/redis
volumes:
- /mnt/nfs/torspider/redis:/data
restart: always
command: "redis-server --appendonly yes --loadmodule /usr/local/lib/rebloom.so"
expose:
- 6379
tor:
build:
context: containers/tor
restart: always
environment:
haproxy_pass: thisisnotsecureatallbutitisbetterthanplainadmin
expose:
- 8118
- 5566
- 2090
spider:
build:
context: .
restart: always
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
SOCKS_PROXY: http://tor:5566
CELERY_BROKER: redis://redis:6379/1
CELERY_RESULT: redis://redis:6379/1
volumes:
- /mnt/nfs/torspider/data:/data
env_file: .env
command: "python torspider"
depends_on:
- redis
- tor
celery:
build: .
restart: always
command: celery -A spidercommon.tasks -P gevent --autoscale=16,8 worker
links:
- redis
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
CELERY_BROKER: redis://redis:6379/1
CELERY_RESULT: redis://redis:6379/1
volumes:
- /mnt/nfs/torspider/data:/data
env_file: .env
beat:
build: .
restart: always
command: celery -A spidercommon.tasks beat
links:
- redis
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
CELERY_BROKER: redis://redis:6379/1
CELERY_RESULT: redis://redis:6379/1
env_file: .env