-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (57 loc) · 2.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (57 loc) · 2.04 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
services:
gitlab-analyzer:
build: .
container_name: gitlab-issues-analyzer
restart: unless-stopped
ports:
- "${PORT:-${WEBHOOK_PORT:-8000}}:${PORT:-${WEBHOOK_PORT:-8000}}"
# Volumes for development (mounted in docker-compose.dev.yml or docker-compose.override.yml)
# In production, code is copied into image during build
volumes:
# Data persistence (processed issues file, etc.)
- ./data:/app/data:rw
environment:
# GitLab Configuration
- GITLAB_URL=${GITLAB_URL}
- GITLAB_TOKEN=${GITLAB_TOKEN}
- GITLAB_ISSUE_SCOPE=${GITLAB_ISSUE_SCOPE:-all}
- GITLAB_ISSUE_LABELS=${GITLAB_ISSUE_LABELS:-}
# AI Provider Configuration
- AI_PROVIDER=${AI_PROVIDER:-openrouter}
- AI_API_KEY=${AI_API_KEY}
- AI_MODEL=${AI_MODEL:-tngtech/deepseek-r1t2-chimera:free}
- AI_MAX_TOKENS=${AI_MAX_TOKENS:-16000}
- AI_ENABLE_REASONING=${AI_ENABLE_REASONING:-true}
# SMTP Configuration
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT:-587}
- SMTP_USERNAME=${SMTP_USERNAME}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- SMTP_FROM_EMAIL=${SMTP_FROM_EMAIL}
- SMTP_TO_EMAIL=${SMTP_TO_EMAIL}
# Application Configuration
- ENVIRONMENT=${ENVIRONMENT:-production}
- ENABLE_AUTOMATION=${ENABLE_AUTOMATION:-true}
- APP_MODE=${APP_MODE:-poll}
- POLL_INTERVAL=${POLL_INTERVAL:-900}
- PORT=${PORT:-${WEBHOOK_PORT:-8000}}
- WEBHOOK_PORT=${PORT:-${WEBHOOK_PORT:-8000}}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- MAX_ISSUES_PER_POLL=${MAX_ISSUES_PER_POLL:-}
- TIMEZONE=${TIMEZONE:-Asia/Ho_Chi_Minh}
- APP_VERSION=${APP_VERSION:-0.1.0}
- ISSUE_START_TIME=${ISSUE_START_TIME:-}
- PROJECT_ID=${PROJECT_ID:-}
env_file:
- .env
healthcheck:
test: ["CMD", "python", "-c", "import sys; sys.exit(0)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"