-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (60 loc) · 1.36 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
version: '3.5'
services:
db:
image: "mysql:latest"
ports:
- "3500:3306"
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: x-financial-arbitration
MYSQL_USER: worker
MYSQL_PASSWORD: worker
networks:
- analysis-net
worker:
build: .
environment:
PORT: 5000
NODE_CONFIG_DIR: ./src/config
NODE_ENV: development
DB_NAME: x-financial-arbitration
DB_HOST: db
DB_PORT: 3306
DB_USER: worker
DB_PASSWORD: worker
BINANCE_DB_HOST: binance_db
BINANCE_DB_PORT: 3306
BINANCE_DB_NAME: x-financial-arbitration
BITTREX_DB_HOST: bittrex_db
BITTREX_DB_PORT: 3306
BITTREX_DB_NAME: x-financial-arbitration
ports:
- "5000:5000"
links:
- db
external_links:
- xfinancialarbitrationdatacollectionworkerbinance_mysqldb_1:binance_db
- xfinancialarbitrationdatacollectionworkerbittrex_mysqldb_1:bittrex_db
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- db
networks:
- binance-db-net
- bittrex-db-net
- analysis-net
volumes:
db_data:
networks:
analysis-net:
driver: bridge
binance-db-net:
external:
name: binance-db-net
bittrex-db-net:
external:
name: bittrex-db-net