-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.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
version: '3.8'
services:
app:
build: .
ports:
- "8501:8501"
volumes:
- ./logs:/app/logs
- ./reports:/app/reports
- ./config:/app/config
- ./output:/app/output
environment:
- PYTHONUNBUFFERED=1
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
- FIRECRAWL_API_URL=https://j12d832.impossible.finance
- REDIS_URL=redis://redis:6379
- APP_ENV=${APP_ENV:-development}
- DEBUG=${DEBUG:-true}
- LOG_LEVEL=${LOG_LEVEL:-debug}
- OUTPUT_FORMAT=${OUTPUT_FORMAT:-markdown}
- MAX_REQUESTS_PER_HOUR=${MAX_REQUESTS_PER_HOUR:-100}
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8501"]
interval: 30s
timeout: 10s
retries: 3
depends_on:
- redis
# If on Linux, you might need to add extra_hosts for host.docker.internal:
# extra_hosts:
# - "host.docker.internal:host-gateway"
redis:
image: redis:alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
volumes:
redis_data: