forked from chrisleekr/binance-trading-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (68 loc) · 1.78 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
version: '3.7'
services:
binance-bot:
container_name: binance-bot
build:
context: ./
target: dev-stage
# target: production-stage
networks:
- internal
volumes:
- ./config:/srv/config
- ./app:/srv/app
- ./public:/srv/public
env_file:
- .env
restart: unless-stopped
environment:
- BINANCE_MODE=test
# - BINANCE_MODE=live
- BINANCE_JOBS_ALIVE_ENABLED=true
- BINANCE_JOBS_SIMPLE_STOP_CHASER_ENABLED=true
- BINANCE_JOBS_SIMPLE_STOP_CHASER_SYMBOLS=["BTCUSDT", "ETHUSDT"]
- BINANCE_JOBS_SIMPLE_STOP_CHASER_SUPPORT_FIATS=["USDT"]
- BINANCE_JOBS_SIMPLE_STOP_CHASER_STOP_LOSS_LIMIT_LAST_BUY_PERCENTAGE=1.01
- BINANCE_JOBS_SIMPLE_STOP_CHASER_STOP_LOSS_LIMIT_STOP_PERCENTAGE=0.99
- BINANCE_JOBS_SIMPLE_STOP_CHASER_STOP_LOSS_LIMIT_LIMIT_PERCENTAGE=0.98
- REDIS_HOST=binance-redis
- REDIS_PORT=6379
- REDIS_PASSWORD=
ports:
- 8080:80
binance-redis:
container_name: binance-redis
image: redis:6.0
sysctls:
net.core.somaxconn: 1024
restart: unless-stopped
networks:
- internal
volumes:
- redis_data:/data
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
binance-mongo:
container_name: binance-mongo
image: mongo:3.2.20-jessie
restart: unless-stopped
networks:
- internal
volumes:
- mongo_data:/data/db
binance-mongo-express:
container_name: binance-mongo-express
image: mongo-express:0.54
restart: unless-stopped
networks:
- internal
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_SERVER: binance-mongo
networks:
internal:
driver: bridge
volumes:
redis_data:
mongo_data: