- Created governance-service application structure - Added pyproject.toml with FastAPI, SQLModel, asyncpg, and aitbc-core dependencies - Implemented main.py with basic governance service structure - Created systemd service file for governance-service (port 8105) - Added README.md with installation and configuration instructions This starts Phase 4.6: Extract Governance Service (foundation created)
18 lines
559 B
Desktop File
18 lines
559 B
Desktop File
[Unit]
|
|
Description=AITBC Governance Service
|
|
After=network.target postgresql.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=aitbc
|
|
WorkingDirectory=/opt/aitbc/apps/governance-service
|
|
Environment="PATH=/opt/aitbc/venv/bin"
|
|
Environment="PYTHONPATH=/opt/aitbc/packages/py/aitbc-core/src:/opt/aitbc/apps/governance-service/src:/opt/aitbc"
|
|
Environment="DATABASE_URL=postgresql+asyncpg://aitbc_governance:password@localhost:5432/aitbc_governance"
|
|
ExecStart=/opt/aitbc/venv/bin/python -m governance_service.main
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|