-
Notifications
You must be signed in to change notification settings - Fork 522
/
docker-compose.yml
36 lines (34 loc) · 1.49 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
---
x-common-settings:
&common-settings
image: freqtradeorg/freqtrade:stable
build:
context: .
dockerfile: "./docker/Dockerfile.custom"
restart: unless-stopped
volumes:
- "./user_data:/freqtrade/user_data"
- "./user_data/data:/freqtrade/user_data/data"
- "./configs:/freqtrade/configs"
- "./${FREQTRADE__STRATEGY:-NostalgiaForInfinityX5}.py:/freqtrade/${FREQTRADE__STRATEGY:-NostalgiaForInfinityX5}.py"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${FREQTRADE__API_SERVER__LISTEN_PORT:-8080}"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
start_interval: 5s
env_file:
- path: .env
required: false # default true
services:
freqtrade:
<<: *common-settings
container_name: ${FREQTRADE__BOT_NAME:-Example_Test_Account}_${FREQTRADE__EXCHANGE__NAME:-binance}_${FREQTRADE__TRADING_MODE:-futures}-${FREQTRADE__STRATEGY:-NostalgiaForInfinityX5}
ports:
- "${FREQTRADE__API_SERVER__LISTEN_PORT:-8080}:${FREQTRADE__API_SERVER__LISTEN_PORT:-8080}"
# Default command used when running `docker compose up`
command: >
trade
--db-url sqlite:////freqtrade/user_data/${FREQTRADE__BOT_NAME:-Example_Test_Account}_${FREQTRADE__EXCHANGE__NAME:-binance}_${FREQTRADE__TRADING_MODE:-futures}-tradesv3.sqlite
--log-file user_data/logs/${FREQTRADE__BOT_NAME:-Example_Test_Account}-${FREQTRADE__EXCHANGE__NAME:-binance}-${FREQTRADE__STRATEGY:-NostalgiaForInfinityX5}-${FREQTRADE__TRADING_MODE:-futures}.log