sync: migrate ai-operator to Gitea (2026-08-10)

This commit is contained in:
konturai-ops
2026-08-10 15:26:52 +00:00
commit 53652b95ad
173 changed files with 16676 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
services:
ai-operator-postgres:
image: pgvector/pgvector:pg16
container_name: ai-operator-postgres
restart: unless-stopped
env_file:
- /etc/ai-operator/postgres.env
ports:
- "127.0.0.1:${AI_OPERATOR_POSTGRES_PORT:-5432}:5432"
volumes:
- ai_operator_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 20
volumes:
ai_operator_postgres_data:
@@ -0,0 +1,36 @@
[Unit]
Description=AI Operator Go Service
After=network.target asterisk.service
[Service]
Type=simple
WorkingDirectory=/opt/ai-operator
ExecStart=/opt/ai-operator/bin/ai-operator run --env /etc/ai-operator/ai-operator.env --ari-events --observe-only
# For real test-call control, replace --observe-only with --call-control only after approval.
Restart=on-failure
RestartSec=5
Environment=AI_OPERATOR_ENV_FILE=/etc/ai-operator/ai-operator.env
# User will be finalized in deployment TZ.
# User=ai-operator
[Install]
WantedBy=multi-user.target
# Safe observe-only:
# ExecStart=/opt/ai-operator/bin/ai-operator run --env /etc/ai-operator/ai-operator.env --ari-events --observe-only
# Controlled test mode only:
# ExecStart=/opt/ai-operator/bin/ai-operator run --env /etc/ai-operator/ai-operator.env --ari-events --call-control --media --media-test-mode stats
# Safe fake provider test mode:
# ExecStart=/opt/ai-operator/bin/ai-operator run --env /etc/ai-operator/ai-operator.env --ari-events --call-control --media --voice-provider fake
# OpenAI test mode only after OPENAI_API_KEY is configured:
# ExecStart=/opt/ai-operator/bin/ai-operator run --env /etc/ai-operator/ai-operator.env --ari-events --call-control --media --voice-provider openai_realtime
# Current safe test mode with fake provider and dialogue state machine:
# ExecStart=/opt/ai-operator/bin/ai-operator run --env /etc/ai-operator/ai-operator.env --ari-events --call-control --media --voice-provider fake
# Current safe test mode with fake provider, dialogue state machine, and language selection:
# ExecStart=/opt/ai-operator/bin/ai-operator run --env /etc/ai-operator/ai-operator.env --ari-events --call-control --media --voice-provider fake