-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-sample.yml
231 lines (231 loc) · 5.87 KB
/
docker-sample.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
api:
autoredeploy: true
environment:
- FLASK_HOST=0.0.0.0
- 'MONGO_URL=mongodb://steemit:[email protected]:27017/SteemData'
- PRODUCTION=true
- 'ROOT_URL=http://api.steemdata.com/'
- VIRTUAL_HOST=api.steemdata.com
- VIRTUAL_PORT=5000
expose:
- '5000'
image: 'furion/steemdata-api:latest'
restart: always
tags:
- steemdata
app-mentions:
autoredeploy: true
environment:
- FLASK_HOST=0.0.0.0
- 'MONGO_URL=mongodb://steemit:[email protected]:27017/SteemData'
- PRODUCTION=true
- 'ROOT_URL=http://mentions.steemdata.com/'
- VIRTUAL_HOST=mentions.steemdata.com
expose:
- '5000'
image: 'furion/steemdata-mentions:latest'
restart: always
tags:
- steemdata
app-phist:
autoredeploy: true
environment:
- FLASK_HOST=0.0.0.0
- 'MONGO_URL=mongodb://steemit:[email protected]:27017/SteemData'
- PRODUCTION=true
- 'ROOT_URL=http://phist.steemdata.com/'
- VIRTUAL_HOST=phist.steemdata.com
expose:
- '5000'
image: 'furion/steemdata-phist:latest'
restart: always
tags:
- steemdata
celery-worker:
autoredeploy: true
command: celery worker -A tasks -l info -c 1 -P solo
environment:
- 'CELERY_BACKEND_URL=redis://:not_real_password@redis'
- 'CELERY_BROKER_URL=redis://:not_real_password@redis'
- 'DB_HOST=server:not_real_password_mongo@mongodb'
- DB_NAME=SteemData
- DB_PORT=27017
image: 'furion/steemdata-mongo:latest'
links:
- mongodb
- redis
mem_limit: 1094m
restart: always
sequential_deployment: true
tags:
- steemdata
target_num_containers: 10
mongodb:
command: 'mongod --auth --storageEngine wiredTiger --wiredTigerEngineConfigString="cache_size=30GB"'
image: 'mongo:latest'
mem_limit: 33000m
ports:
- '27017:27017'
- '28017:28017'
privileged: true
restart: always
tags:
- steemdata
volumes:
- '/mongo:/data/db'
- '/mongo-backup:/mongo-backup'
nginx:
image: 'jwilder/nginx-proxy:latest'
ports:
- '80:80'
roles:
- global
tags:
- steemdata
volumes:
- '/var/run/docker.sock:/tmp/docker.sock:ro'
redis:
command: redis-server --requirepass not_real_password
environment:
- REDIS_PASSWORD=not_real_password
image: 'redis:alpine'
ports:
- '6379:6379'
restart: always
tags:
- steemdata
tty: true
sbds-mysql:
environment:
- MYSQL_DATABASE=sbds
- MYSQL_ROOT_PASSWORD=not_real_password_mysql
image: 'mysql:latest'
mem_limit: 3000m
ports:
- '3306:3306'
restart: always
tags:
- steemdata
volumes:
- '/sbds-mysql:/var/lib/mysql'
- '/sbds-mysql-init:/docker-entrypoint-initdb.d'
steemdata-charts:
autoredeploy: true
image: 'furion/steemdata-charts:latest'
mem_limit: 1024m
restart: always
tags:
- steemdata
web:
autoredeploy: true
environment:
- 'MONGO_URL=mongodb://steemit:[email protected]:27017/SteemData'
- 'ROOT_URL=http://steemdata.com/'
- VIRTUAL_HOST=steemdata.com
expose:
- '3000'
image: 'furion/steemdata.com:latest'
restart: always
tags:
- steemdata
webapi:
autoredeploy: true
environment:
- FLASK_HOST=0.0.0.0
- 'MONGO_URL=mongodb://steemit:[email protected]:27017/SteemData'
- PRODUCTION=true
- 'ROOT_URL=http://webapi.steemdata.com/'
- VIRTUAL_HOST=webapi.steemdata.com
expose:
- '5000'
image: 'furion/steemdata-webapi:latest'
restart: always
tags:
- steemdata
worker-refresh-dbstats:
autoredeploy: true
command: python __main__.py -w refresh_dbstats
environment:
- 'CELERY_BACKEND_URL=redis://:not_real_password@redis'
- 'CELERY_BROKER_URL=redis://:not_real_password@redis'
- 'DB_HOST=server:not_real_password_mongo@mongodb'
- DB_NAME=SteemData
- DB_PORT=27017
image: 'furion/steemdata-mongo:latest'
links:
- mongodb
mem_limit: 512m
restart: always
tags:
- steemdata
worker-scrape-all-users:
autoredeploy: true
command: python __main__.py -w scrape_all_users
environment:
- 'CELERY_BACKEND_URL=redis://:not_real_password@redis'
- 'CELERY_BROKER_URL=redis://:not_real_password@redis'
- 'DB_HOST=server:not_real_password_mongo@mongodb'
- DB_NAME=SteemData
- DB_PORT=27017
image: 'furion/steemdata-mongo:latest'
links:
- mongodb
mem_limit: 512m
restart: always
tags:
- steemdata
worker-scrape-operations:
autoredeploy: true
command: python __main__.py -w scrape_operations
environment:
- 'CELERY_BACKEND_URL=redis://:not_real_password@redis'
- 'CELERY_BROKER_URL=redis://:not_real_password@redis'
- 'DB_HOST=server:not_real_password_mongo@mongodb'
- DB_NAME=SteemData
- DB_PORT=27017
image: 'furion/steemdata-mongo:latest'
mem_limit: 1024m
restart: always
tags:
- steemdata
worker-scrape-prices:
autoredeploy: true
command: python __main__.py -w scrape_prices
environment:
- 'CELERY_BACKEND_URL=redis://:not_real_password@redis'
- 'CELERY_BROKER_URL=redis://:not_real_password@redis'
- 'DB_HOST=server:not_real_password_mongo@mongodb'
- DB_NAME=SteemData
- DB_PORT=27017
image: 'furion/steemdata-mongo:latest'
links:
- mongodb
mem_limit: 512m
restart: always
tags:
- steemdata
worker-validate-operations:
command: python __main__.py -w validate_operations
environment:
- 'CELERY_BACKEND_URL=redis://:not_real_password@redis'
- 'CELERY_BROKER_URL=redis://:not_real_password@redis'
- 'DB_HOST=server:not_real_password_mongo@mongodb'
- DB_NAME=SteemData
- DB_PORT=27017
image: 'furion/steemdata-mongo:latest'
links:
- mongodb
mem_limit: 512m
restart: always
tags:
- steemdata
sbds-streamer:
command: /etc/service/sbds-streamer/run
environment:
- 'DATABASE_URL=mysql://root:not_real_password_mysql@sbds-mysql:3306/sbds'
- 'STEEMD_HTTP_URL=https://gtg.steem.house:8090'
image: 'steemit/sbds:latest'
mem_limit: 300m
restart: always
tags:
- steemdata