forked from freqtrade/freqtrade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (82 loc) · 3.15 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
---
version: '3'
services:
# start by defining container / bot name, must be unique to docker
fbot_default:
# the docker image to pull
# work in 'develop' branch
image: freqtradeorg/freqtrade:develop
# bot should restart after boot unless manually stopped
restart: unless-stopped
# repeat bot name
container_name: fbot_default
# map docker files to osx finder files
volumes:
# add files for instance
# - "./freqtrade/exchange/exchange.py:/freqtrade/freqtrade/exchange/exchange.py"
# or whole folders
# - "./freqtrade/exchange:/freqtrade/freqtrade/exchange"
- "./user_data:/freqtrade/user_data"
# set bot port i.e. 8080, 8081 ...
ports:
- "127.0.0.1:8080:8080"
# the command to execute when bot is initiated
# the only way to get the config file modular seems to be to
# call the config.bot_default.json script from the shell command each time a command is run (annoying), i.e.
# $ freqtrade download-data -t 4h --days 245 --config user_data/config.bot_default.json
# but we keep the config.json file complete so that bot_default never needs this extra command
# also we don't need to do this once the bot is setup as the below 'trade' command can take this multiple config command automatically
# anyway, set log file, sql file and config extension to bot name, i.e. 'fbot_default', 'fbot1' ...
# set strategy to run when bot starts, i.e. 'SampleStrategy'
command: >
trade
--logfile /freqtrade/user_data/logs/fbot_default.log
--db-url sqlite:////freqtrade/user_data/trades/fbot_default.sqlite
--config /freqtrade/user_data/config.json
--config /freqtrade/user_data/config.fbot_default.json
--strategy DevilStra_JK
fbot1:
image: freqtradeorg/freqtrade:develop
restart: unless-stopped
container_name: fbot1
volumes:
- "./user_data:/freqtrade/user_data"
ports:
- "127.0.0.1:8081:8081"
command: >
trade
--logfile /freqtrade/user_data/logs/fbot1.log
--db-url sqlite:////freqtrade/user_data/trades/fbot1.sqlite
--config /freqtrade/user_data/config.json
--config /freqtrade/user_data/config.fbot1.json
--strategy DevilStra
fbot2:
image: freqtradeorg/freqtrade:develop
restart: unless-stopped
container_name: fbot2
volumes:
- "./user_data:/freqtrade/user_data"
ports:
- "127.0.0.1:8082:8082"
command: >
trade
--logfile /freqtrade/user_data/logs/fbot2.log
--db-url sqlite:////freqtrade/user_data/trades/fbot2.sqlite
--config /freqtrade/user_data/config.json
--config /freqtrade/user_data/config.fbot2.json
--strategy HourBasedStrategy
fbot3:
image: freqtradeorg/freqtrade:develop
restart: unless-stopped
container_name: fbot3
volumes:
- "./user_data:/freqtrade/user_data"
ports:
- "127.0.0.1:8083:8083"
command: >
trade
--logfile /freqtrade/user_data/logs/fbot3.log
--db-url sqlite:////freqtrade/user_data/trades/fbot3.sqlite
--config /freqtrade/user_data/config.json
--config /freqtrade/user_data/config.fbot3.json
--strategy Supertrend