-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 891 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (32 loc) · 891 Bytes
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
# Full stack: sim backend + ML API + static frontend (nginx).
services:
backend:
build: ./backend
ports:
- "8000:8080"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/health')"]
interval: 10s
timeout: 3s
retries: 3
ml:
build: ./ml
ports:
- "8001:8001"
environment:
RLCBTC_POLICY_PATH: /app/models/deployed/ppo_baseline/policy.zip
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8001/ml/health')"]
interval: 15s
timeout: 5s
retries: 3
frontend:
image: nginx:alpine
ports:
- "8080:80"
volumes:
- ./frontend/dist:/usr/share/nginx/html:ro
- ./deploy/nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- backend
- ml