-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 1.15 KB
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (39 loc) · 1.15 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
services:
backend:
build:
context: ./backend
image: clavis-terminal-backend
container_name: clavis-backend
restart: unless-stopped
ports:
- "8000:8000"
volumes:
# the daily access token is written back into .env by auth.py
- ./backend/.env:/app/.env
# recordings, SQLite and session metadata survive rebuilds
- clavis-data:/app/data
# edit the watchlist without rebuilding the image
- ./backend/stocks.txt:/app/stocks.txt:ro
environment:
- TZ=Asia/Kolkata
- OI_LOG_LEVEL=INFO
stdin_open: true
tty: true
command: ["python", "main.py", "--api"]
dashboard:
build:
context: ./dashboard
args:
# baked into the client bundle - must be reachable from the BROWSER,
# which is why this is localhost and not the service name
NEXT_PUBLIC_API_WS: ${NEXT_PUBLIC_API_WS:-ws://localhost:8000/ws/live}
NEXT_PUBLIC_DEMO: ${NEXT_PUBLIC_DEMO:-false}
image: clavis-terminal-dashboard
container_name: clavis-dashboard
restart: unless-stopped
ports:
- "3000:3000"
depends_on:
- backend
volumes:
clavis-data: