-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (72 loc) · 1.83 KB
/
docker-compose.yml
File metadata and controls
78 lines (72 loc) · 1.83 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3.8'
services:
# TerraForge Studio main application
terraforge:
build:
context: .
dockerfile: Dockerfile
container_name: terraforge-studio
ports:
- "8000:8000"
environment:
- ENVIRONMENT=production
- DEBUG=false
- LOG_LEVEL=info
- CACHE_DIR=/app/cache
- OUTPUT_DIR=/app/output
# Optional: Add your API keys here or use .env file
# - OPENTOPOGRAPHY_API_KEY=${OPENTOPOGRAPHY_API_KEY}
# - OLLAMA_HOST=${OLLAMA_HOST:-http://host.docker.internal:11434}
volumes:
- terraforge_cache:/app/cache
- terraforge_output:/app/output
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- terraforge-network
# Nginx reverse proxy (optional, for production)
nginx:
image: nginx:alpine
container_name: terraforge-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./ssl:/etc/ssl:ro
depends_on:
- terraforge
restart: unless-stopped
networks:
- terraforge-network
# Comment out if not using SSL
# environment:
# - SSL_CERT_PATH=/etc/ssl/cert.pem
# - SSL_KEY_PATH=/etc/ssl/key.pem
# Redis for caching and queue management (optional, for batch processing)
redis:
image: redis:7-alpine
container_name: terraforge-redis
ports:
- "6379:6379"
volumes:
- terraforge_redis:/data
restart: unless-stopped
networks:
- terraforge-network
command: redis-server --appendonly yes
volumes:
terraforge_cache:
driver: local
terraforge_output:
driver: local
terraforge_redis:
driver: local
networks:
terraforge-network:
driver: bridge