forked from chrisleekr/binance-trading-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.rpi.yml
72 lines (66 loc) · 1.63 KB
/
docker-compose.rpi.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
version: '3.7'
services:
binance-bot:
container_name: binance-bot
image: chrisleekr/binance-trading-bot:latest
networks:
- internal
env_file:
- .env
restart: unless-stopped
environment:
# - BINANCE_MODE=test
- BINANCE_MODE=live
- BINANCE_REDIS_HOST=binance-redis
- BINANCE_REDIS_PORT=6379
- BINANCE_REDIS_PASSWORD=secretp422
ports:
- 8080:80
logging:
driver: 'json-file'
options:
max-size: '50m'
tradingview:
container_name: tradingview
image: chrisleekr/binance-trading-bot:tradingview
networks:
- internal
restart: unless-stopped
environment:
# https://docs.python.org/3/howto/logging.html#logging-levels
- BINANCE_TRADINGVIEW_LOG_LEVEL=INFO
logging:
driver: 'json-file'
options:
max-size: '50m'
binance-redis:
container_name: binance-redis
# From Redis 6.2.6 onwards, it does not support Raspberry Pi 32bit.
image: redis:6.2.4
sysctls:
net.core.somaxconn: 1024
networks:
- internal
restart: unless-stopped
volumes:
- redis_data:/data
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
command:
redis-server /usr/local/etc/redis/redis.conf --requirepass secretp422
binance-mongo:
container_name: binance-mongo
image: apcheamitru/arm32v7-mongo:3.2.20
restart: unless-stopped
networks:
- internal
volumes:
- mongo_data:/data/db
#command: mongod --repair
networks:
internal:
driver: bridge
# driver_opts:
# com.docker.network.driver.mtu: 1442
volumes:
redis_data:
mongo_data: