-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-stack.yml
98 lines (91 loc) · 2.11 KB
/
docker-stack.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
version: '3.7'
services:
binance-redis:
image: redis:6.0
networks:
- ingress
volumes:
- '/data/binance/redis:/data/redis'
- '/data/binance/redis/redis.conf:/usr/local/etc/redis/redis.conf'
deploy:
mode: global
ports:
- 6379:6379
command: redis-server /usr/local/etc/redis/redis.conf
binance-mongo:
image: mongo:3.2.20-jessie
networks:
- ingress
volumes:
- '/data/binance/db:/data/db'
deploy:
mode: global
ports:
- 27017:27017
binance-mongo-express:
image: mongo-express:0.54
restart: unless-stopped
networks:
- ingress
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_SERVER: binance-mongo
deploy:
mode: global
binance-redis-commander:
image: rediscommander/redis-commander:latest
restart: unless-stopped
networks:
- ingress
ports:
- 8082:8081
environment:
REDIS_HOST: 'binance-redis'
REDIS_PORT: 6379
REDIS_PASSWORD:
deploy:
mode: global
binance-bot:
image: chrisleekr/binance-trading-bot:latest
networks:
- ingress
environment:
BINANCE_LIVE_API_KEY: ''
BINANCE_LIVE_SECRET_KEY: ''
BINANCE_TEST_API_KEY: ''
BINANCE_TEST_SECRET_KEY: ''
BINANCE_MODE: 'live'
BINANCE_TZ: 'Europe/Berlin'
BINANCE_SLACK_ENABLED: 'false'
BINANCE_JOBS_ALIVE_ENABLED: 'true'
BINANCE_JOBS_TRAILING_TRADE_ENABLED: 'true'
BINANCE_JOBS_TRAILING_TRADE_SYMBOLS:
'["BTCEUR", "BNBBTC", "BNBEUR", "ETHBTC", "XRPBTC"]'
BINANCE_MONGO_HOST: 'binance-mongo'
BINANCE_MONGO_PORT: 27017
BINANCE_MONGO_DATABASE: 'binance-bot'
BINANCE_LOCAL_TUNNEL_ENABLED: 'false'
REDIS_HOST: 'binance-redis'
REDIS_PORT: 6379
REDIS_PASSWORD:
ports:
- 8080:80
logging:
driver: 'json-file'
options:
max-size: '50m'
deploy:
mode: global
networks:
ingress:
driver: bridge
attachable: true
kern-frontend:
driver: bridge
attachable: true
volumes:
redis_data:
external: true
mongo_data:
external: true