Files
aitbc/apps/trading-service/trading-service.service
aitbc f8961f6112 Create trading-service foundation
- Created trading-service application structure
- Added pyproject.toml with FastAPI, SQLModel, asyncpg, and aitbc-core dependencies
- Implemented main.py with basic trading service structure
- Created systemd service file for trading-service (port 8104)
- Added README.md with installation and configuration instructions

This starts Phase 4.5: Extract Trading Service (foundation created)
2026-04-30 11:32:10 +02:00

18 lines
541 B
Desktop File

[Unit]
Description=AITBC Trading Service
After=network.target postgresql.service
[Service]
Type=simple
User=aitbc
WorkingDirectory=/opt/aitbc/apps/trading-service
Environment="PATH=/opt/aitbc/venv/bin"
Environment="PYTHONPATH=/opt/aitbc/packages/py/aitbc-core/src:/opt/aitbc/apps/trading-service/src:/opt/aitbc"
Environment="DATABASE_URL=postgresql+asyncpg://aitbc_trading:password@localhost:5432/aitbc_trading"
ExecStart=/opt/aitbc/venv/bin/python -m trading_service.main
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target