forked from PatchyVideo/PatchyVideo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (65 loc) · 1.58 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'
services:
web:
image: patchyvideo
ports:
- "127.0.0.1:5000:5000"
depends_on:
- db
- redis
- spider
- autocomplete
environment:
- FLASK_ENV=production
- FLASK_DEBUG=1
- REDISTOGO_URL_WORKER=redis://redis:6379
- REDISTOGO_URL=redis
- MONGODB_URL=mongodb://db:27017/
- IMAGE_PATH=/var/www/images
- ENABLE_TRANSACTION=true
volumes:
- "/var/www/logs:/logs"
spider:
image: patchyvideo
command: python worker.py
depends_on:
- redis
environment:
- FLASK_ENV=production
- FLASK_DEBUG=1
- REDISTOGO_URL_WORKER=redis://redis:6379
- IMAGE_PATH=/images
- MONGODB_URL=mongodb://db:27017/
- REDISTOGO_URL=redis
- ENABLE_TRANSACTION=true
volumes:
- "/var/www/logs:/logs"
- "/var/www/images:/images"
tagtracker:
image: patchyvideo
command: python popularity_tracker.py
depends_on:
- db
environment:
- FLASK_ENV=production
- REDISTOGO_URL_WORKER=redis://redis:6379
- IMAGE_PATH=/images
- MONGODB_URL=mongodb://db:27017/
- REDISTOGO_URL=redis
- ENABLE_TRANSACTION=true
volumes:
- "/var/www/logs:/logs"
autocomplete:
image: patchyvideo-autocomplete:2019-11-18
depends_on:
- db
volumes:
- "/var/www/logs:/logs"
redis:
image: redis
db:
image: mongo
restart: always
command: /usr/bin/mongod --replSet rs1 --bind_ip 0.0.0.0
volumes:
- '/var/www/data:/data/db'