-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
156 lines (142 loc) · 4.14 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
version : '2'
services:
twitter:
build:
context: ./data-producers
container_name: twitter_01
ports:
- "9999:9999"
volumes:
- ./data-producers/Twitter:/home/ds
command: jupyter-notebook --no-browser --port 9999 --ip='*' --allow-root
environment:
- ACCESS_TOKEN=${ACCESS_TOKEN}
- ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET}
- CONSUMER_KEY=${CONSUMER_KEY}
- CONSUMER_SECRET=${CONSUMER_SECRET}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PWD=${DB_PWD}
- MONGODB_USER=${MONGO_INITDB_ROOT_USERNAME}
- MONGODB_PASS=${MONGO_INITDB_ROOT_PASSWORD}
depends_on:
- manager
iex:
build:
context: ./data-producers
container_name: iex_01
ports:
- "8888:8888"
volumes:
- ./data-producers/IEX:/home/ds
command: jupyter-notebook --no-browser --port 8888 --ip='*' --allow-root
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PWD=${DB_PWD}
- MONGODB_USER=${MONGO_INITDB_ROOT_USERNAME}
- MONGODB_PASS=${MONGO_INITDB_ROOT_PASSWORD}
depends_on:
- manager
analytics:
build:
context: ./data-producers
container_name: analytics_01
ports:
- "7788:7788"
volumes:
- ./data-producers/Analytics:/home/ds
command: jupyter-notebook --no-browser --port 7788 --ip='*' --allow-root
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PWD=${DB_PWD}
- MONGODB_USER=${MONGO_INITDB_ROOT_USERNAME}
- MONGODB_PASS=${MONGO_INITDB_ROOT_PASSWORD}
depends_on:
- manager
manager:
build:
context: ./data-producers
container_name: manager_01
ports:
- "7777:7777"
volumes:
- ./data-producers/Manager:/home/ds
environment:
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PWD=${DB_PWD}
- MONGODB_USER=${MONGO_INITDB_ROOT_USERNAME}
- MONGODB_PASS=${MONGO_INITDB_ROOT_PASSWORD}
command: jupyter-notebook --no-browser --port 7777 --ip='*' --allow-root
depends_on:
- data_store
data_store:
image: redis:alpine
ports:
- "6379:6379"
db:
restart: always
image: mysql:5.6.36
container_name: mysqldb_01
volumes:
- ./data-producers/db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "${DB_ROOT}"
MYSQL_DATABASE: "${DB_NAME}"
MYSQL_USER: "${DB_USER}"
MYSQL_PASSWORD: "${DB_PWD}"
ports:
- "${DB_PORT}:${DB_PORT}"
expose:
- "${DB_PORT}"
data_service:
build:
context: ./data-producers/DataService
container_name: djangoweb_02
command: /bin/sh -c 'cd dataservice && gunicorn -b:8000 dataservice.wsgi:application -w 2'
#command: python manage.py runserver
volumes:
- ./data-producers/DataService/src:/home/ds
ports:
- "8000:8000"
expose:
- "8000"
environment:
- MONGODB_USER=${MONGO_INITDB_ROOT_USERNAME}
- MONGODB_PASS=${MONGO_INITDB_ROOT_PASSWORD}
db-data:
restart: always
container_name: mongodb_01
image: mongo:3.6.0
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
ports:
- "27017:27017"
volumes:
- ./data-producers/db-data:/data/db
mongodbbackup:
image: 'deenoize/mongodb-backup-s3:latest'
container_name: mongobackup_01
links:
- db-data
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- BUCKET=brandyn-twitter-sentiment-analysis
- BACKUP_FOLDER=DBBackup/Development/
#- INIT_BACKUP=true
# - DISABLE_CRON=true
- CRON_TIME=0 4 * * 1-5
- MONGODB_HOST=db-data
- MONGODB_PORT=27017
- MONGODB_USER=${MONGO_INITDB_ROOT_USERNAME}
- MONGODB_PASS=${MONGO_INITDB_ROOT_PASSWORD}