-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.26 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
version: '3.8'
services:
teloscript-api:
build: .
ports:
- "8000:8000"
environment:
- PYTHONPATH=/app
- LOG_LEVEL=info
- PYTHONUNBUFFERED=1
# API Keys from .env file
- OPENAI_API_KEY=${OPENAI_API_KEY}
- BRAVE_API_KEY=${BRAVE_API_KEY}
- GITHUB_PERSONAL_ACCESS_TOKEN=${GITHUB_PERSONAL_ACCESS_TOKEN}
env_file:
- .env
volumes:
# Mount for persistent logs
- ./logs:/app/logs
# Mount config directory for MCP configurations
- ./config:/app/config
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Remove Docker socket mount for better security
# Only uncomment if you specifically need Docker-in-Docker
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# Nginx reverse proxy (optional for production)
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
# Create a basic nginx config inline or mount from a file
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- teloscript-api
restart: unless-stopped
profiles:
- production
volumes:
logs:
driver: local