forked from sorjef/data-gov-ua-analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yml
38 lines (38 loc) · 861 Bytes
/
deploy.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
version: '3.1'
services:
proxy:
image: mattes/rotating-proxy
environment:
- tors=25
rethinkdb:
image: 'vanuan/rethinkdb-alpine'
ports:
- 127.0.0.1:8080:8080
volumes:
- /data/rethinkdb:/data
crawler:
image: vanuan/data-gov-ua-crawler
environment:
- PROXY_URL=http://proxy:5566
- DELAY=10000
- CONCURRENCY=1
- NODE_ENV=production
volumes:
- /data:/data
working_dir: /src
command: sh -c 'yarn install && node crawlInitial'
depends_on:
- proxy
- rethinkdb
deploy:
resources:
limits:
memory: 700M
reservations:
memory: 700M
# uploader:
# image: vanuan/data-gov-ua-mirror
# environment:
# CKAN_URL: 'http://mirror.data-gov-ua.org'
# CKAN_API_TOKEN: 'REPLACE THIS'
# RETHINKDB: 'rethinkdb'