forked from IlyasFardaouix/finclaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (43 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
44 lines (43 loc) · 1.01 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
services:
finclaw:
build: .
ports:
- "8080:8080"
volumes:
- ./data:/app/data
environment:
- FINCLAW_DATA_DIR=/app/data
- FINCLAW_PORT=8080
- FINCLAW_HOST=0.0.0.0
- FINCLAW_LOG_LEVEL=info
restart: unless-stopped
command: ["python", "scripts/finclaw.py", "info"]
deploy:
resources:
limits:
memory: 512M
cpus: "1.0"
finclaw-api:
build: .
ports:
- "8081:8080"
volumes:
- ./data:/app/data
environment:
- FINCLAW_DATA_DIR=/app/data
- FINCLAW_PORT=8080
- FINCLAW_HOST=0.0.0.0
- FINCLAW_LOG_LEVEL=info
restart: unless-stopped
command: ["python", "-m", "src.api.server"]
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/api/v1/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
memory: 1G
cpus: "2.0"