44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
dealroom:
|
|
build: .
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- DB_PATH=/data/db/dealroom.db
|
|
- DB_KEY=dev-encryption-key-change-in-production
|
|
- FILES_PATH=/data/files
|
|
- BACKUP_PATH=/data/backups
|
|
- BASE_URL=http://localhost:8080
|
|
- SESSION_SECRET=dev-session-secret-change-in-production
|
|
- PORT=8080
|
|
# Uncomment and configure for AI features
|
|
# - K25_API_URL=http://k25:8080
|
|
# - K25_API_KEY=your-k2.5-api-key
|
|
# Uncomment and configure for email features
|
|
# - SMTP_HOST=smtp.example.com
|
|
# - SMTP_USER=dealroom@example.com
|
|
# - SMTP_PASS=your-smtp-password
|
|
volumes:
|
|
- dealroom_data:/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 30s
|
|
|
|
# Optional: K2.5 AI Service (mock service for development)
|
|
# k25:
|
|
# image: k25-mock:latest # Replace with actual K2.5 image
|
|
# ports:
|
|
# - "8081:8080"
|
|
# environment:
|
|
# - API_KEY=dev-k25-key
|
|
# restart: unless-stopped
|
|
|
|
volumes:
|
|
dealroom_data:
|
|
driver: local |