-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
142 lines (126 loc) · 3.16 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
version: '3'
services:
# Services
# lenses:
# image: landoop/kafka-lenses-dev
# links:
# - mosquitto
# - elasticsearch
# - redis
# ports:
# - "3030:3030"
# - "9092:9092"
# - "2181:2181"
# - "8081:8081"
# - "9581:9581"
# - "9582:9582"
# - "9584:9584"
# - "9585:9585"
# environment:
# - SAMPLEDATA=0
# - DISABLE=azure-documentdb,coap,druid,ftp,hazelcast,hbase,influxdb,jms,kudu,rethink,voltdb,yahoo,hdfs,jdbc,twitter
# volumes:
# - ./containers/lenses/license.json:/license.json
#
# elasticsearch:
# build:
# context: containers/elasticsearch/
# volumes:
# - ./containers/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
# ports:
# - "9200:9200"
# - "9300:9300"
# environment:
# ES_JAVA_OPTS: "-Xmx256m -Xms256m"
#
# kibana:
# build:
# context: containers/kibana/
# volumes:
# - ./containers/kibana/config/:/usr/share/kibana/config:ro
# ports:
# - "5601:5601"
# depends_on:
# - elasticsearch
redis:
image: redis
ports:
- "6379:6379"
couchdb:
image: "apache/couchdb"
ports:
- "5984:5984"
mosquitto:
image: toke/mosquitto
ports:
- "1883:1883"
- "9001:9001"
- "8080:9001"
# Servers
ticker-server:
build: ./containers/ticker-server
links:
- mosquitto
- redis
environment:
- DEBUG=alpinist:*
- MQTT_URL=mqtt://mosquitto:1883
- REDIS_URL=redis://redis:6379
command: pm2-runtime ecosystem.json
order-server:
build: ./containers/order-server
links:
- mosquitto
- couchdb
environment:
- DEBUG=alpinist:*
- MQTT_URL=mqtt://mosquitto:1883
- COUCHDB_URL=http://couchdb:5984
- CEXIO_USER_ID=up111849658
- CEXIO_API_KEY=UFCPRP2OCrz29iU3j2iKZXCt3M
- CEXIO_API_SECRET=UsYdCQ8GVZpVarFAbcnPe3ytPo
- BITFINEX_API_KEY=rzX7qTepd0xsWAPYZti77k31UKEUaSHo88K6a8kn80L
- BITFINEX_API_SECRET=i6wMBI8sWZB1FOTtTk8KIVnddbkNNSBqudmMEOAK1ve
- BITFINEX2_API_KEY=IEpfTShc7mmnHfHKbXqk5bLg8zSKtERs1NVivClkeRG
- BITFINEX2_API_SECRET=V8RQjKmnoXdgjiODXrhBVWgeErEN1awQRRVNZTgKBJA
command: pm2-runtime ecosystem.json
order-sync:
build: ./containers/order-sync
links:
- mosquitto
- couchdb
- order-server
environment:
- DEBUG=alpinist:*
- MQTT_URL=mqtt://mosquitto:1883
- COUCHDB_URL=http://couchdb:5984
command: npm run dev
agent-server:
build: ./containers/agent-server
links:
- mosquitto
- couchdb
- order-sync
- ticker-server
environment:
- DEBUG=alpinist:*
- MQTT_URL=mqtt://mosquitto:1883
- COUCHDB_URL=http://couchdb:5984
command: pm2-runtime ecosystem.json
# Client
web-client:
build: ./containers/web-client
volumes:
- www-volume:/usr/src/dist
nginx:
restart: always
build: ./containers/nginx
links:
- ticker-server
volumes:
- ./containers/nginx/conf.d:/etc/nginx/conf.d
- www-volume:/var/www
ports:
- "80:80"
volumes:
www-volume: {}