[Unit]
Description=WordLoop FastAPI backend
After=network.target

[Service]
Type=simple
User=root
WorkingDirectory=/root/wordloop/backend
EnvironmentFile=/root/wordloop/backend/.env
ExecStart=/root/wordloop/backend/venv/bin/uvicorn main:app --host 127.0.0.1 --port 18004
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
