-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
91 lines (87 loc) · 2.2 KB
/
Copy pathcompose.yaml
File metadata and controls
91 lines (87 loc) · 2.2 KB
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
name: nfi-engine
services:
api:
build:
context: .
image: nfi-engine:local
init: true
restart: unless-stopped
command:
- nfi-engine
- serve
- --config
- /config/futures-paper.yaml
- --host
- 0.0.0.0
- --port
- "18080"
env_file:
- path: examples/docker.env.example
- path: ${NFI_ENGINE_RUNTIME_ENV_FILE:-.runtime/docker.env}
required: false
environment:
NFI_ENGINE_ALLOW_CONTAINER_BIND: "1"
NFI_ENGINE_CONFIG: /config/futures-paper.yaml
ports:
- "127.0.0.1:${NFI_ENGINE_HOST_PORT:-18080}:18080"
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
- nfi-data:/data
- nfi-logs:/logs
- ${NFI_ENGINE_RUNTIME_CONFIG_DIR:-./.runtime/config}:/config:ro
- ./examples:/app/examples:ro
healthcheck:
test:
- CMD-SHELL
- python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:18080/api/v1/ping', timeout=2).read()"
interval: 30s
timeout: 5s
retries: 3
start_period: 5s
cli:
build:
context: .
image: nfi-engine:local
command:
- nfi-engine
- --help
env_file:
- path: examples/docker.env.example
- path: ${NFI_ENGINE_RUNTIME_ENV_FILE:-.runtime/docker.env}
required: false
volumes:
- nfi-data:/data
- nfi-logs:/logs
- ${NFI_ENGINE_RUNTIME_CONFIG_DIR:-./.runtime/config}:/config:ro
- ./examples:/app/examples:ro
paper:
build:
context: .
image: nfi-engine:local
profiles: ["paper"]
command:
- nfi-engine
- paper-run
- --config
- /config/futures-paper.yaml
- --ticks
- /app/tests/fixtures/ticks/btc_usdt_futures.jsonl
- --max-events
- "25"
env_file:
- path: examples/docker.env.example
- path: ${NFI_ENGINE_RUNTIME_ENV_FILE:-.runtime/docker.env}
required: false
volumes:
- nfi-data:/data
- nfi-logs:/logs
- ${NFI_ENGINE_RUNTIME_CONFIG_DIR:-./.runtime/config}:/config:ro
- ./examples:/app/examples:ro
- ./tests/fixtures:/app/tests/fixtures:ro
volumes:
nfi-data:
nfi-logs: