summarylogtreecommitdiffstats
path: root/ai-trader.service
blob: 6ae72ad07c7564b4ada085d6b917684f885402e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=AI-Trader FastAPI Backend Server
After=network.target redis.service postgresql.service
Wants=redis.service

[Service]
Type=simple
User=ai-trader
Group=ai-trader
WorkingDirectory=/opt/ai-trader/service/server
Environment=DOTENV_PATH=/etc/ai-trader/.env
ExecStart=/opt/ai-trader/.venv/bin/python -m uvicorn main:app --host 0.0.0.0 --port 8000
Restart=on-failure
RestartSec=5

ProtectSystem=false

[Install]
WantedBy=multi-user.target