forked from htalha600/Fuzebox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (51 loc) · 1.7 KB
/
docker-compose.yml
File metadata and controls
52 lines (51 loc) · 1.7 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
services:
dashboard:
build: .
container_name: vip-play-dashboard
ports:
- "8501:8501"
volumes:
- ./data:/app/data
- ./reports:/app/reports
- ./agents:/app/agents
- ./config:/app/config
# On-prem: copy .env.example → .env and fill in your key.
# Render: set ANTHROPIC_API_KEY in the Render dashboard — env_file is ignored there.
env_file:
- path: .env
required: false # allows startup without a .env (e.g. CI, Render)
environment:
# Pass-through: honours the value from .env, shell env, or Render's injected env.
# Never hardcode a value here.
- ANTHROPIC_API_KEY
- DASHBOARD_DB_PATH=${DASHBOARD_DB_PATH:-/app/data/agent_dashboard.db}
- AGENTS_CONFIG_DIR=${AGENTS_CONFIG_DIR:-/app/agents}
- MARKET_CONFIG_DIR=${MARKET_CONFIG_DIR:-/app/config/market}
- STREAMLIT_SERVER_RUNONCONFIGURATIONCHANGE=true
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8501/_stcore/health').read()"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
cli:
build: .
container_name: vip-play-cli
volumes:
- ./data:/app/data
- ./reports:/app/reports
- ./agents:/app/agents
- ./config:/app/config
env_file:
- path: .env
required: false
environment:
- ANTHROPIC_API_KEY
- DASHBOARD_DB_PATH=${DASHBOARD_DB_PATH:-/app/data/agent_dashboard.db}
- AGENTS_CONFIG_DIR=${AGENTS_CONFIG_DIR:-/app/agents}
- MARKET_CONFIG_DIR=${MARKET_CONFIG_DIR:-/app/config/market}
working_dir: /app
entrypoint: python main.py
command: status
profiles:
- util