-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.production.yml
62 lines (54 loc) · 1.17 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
version: '2'
volumes:
collect_images:
external: true
collect_redis_data:
external: true
collect_mongo_data:
external: true
services:
scrape_petrol:
volumes:
- collect_images:/home/collect/data/full
command: "./bin/run-sleep.sh scrapy crawl petrol -L INFO"
scrape_omv:
volumes:
- collect_images:/home/collect/data/full
command: "./bin/run-sleep.sh scrapy crawl omv -L INFO"
ocr_worker:
environment:
- LOG_LEVEL=INFO
volumes:
- collect_images:/home/collect/data/full
rq_monitor:
ports:
- 9181:9181
redis:
volumes:
- collect_redis_data:/data
ports:
- "6379:6379"
mongo:
volumes:
- collect_mongo_data:/data/db
ports:
- "27017:27017"
- "27018:27018"
- "27019:27019"
- "28017:28017"
command: "--smallfiles --setParameter failIndexKeyTooLong=false"
api:
image: bencinmonitor/api
links:
- redis
- mongo
depends_on:
- redis
- mongo
ports:
- "7766:7766"
environment:
- DEBUG=True
- MONGO_URL=mongodb://mongo:27017/bm
- REDIS_URL=redis://@redis:6379/1
restart: unless-stopped