- Sensitive values were removed from
private.py(file deleted). - App reads config from
.envviasettings.py(Pydantic Settings).
Edit .env before production use.
If you want Nginx to proxy to localhost on port 8005, run:
bash scripts/setup_host_systemd.sh
What this script does:
- Creates
.venv-host - Installs app dependencies (prefers
requirements.docker.txt, fallbackrequirements.txt) - Runs
alembic upgrade head - Creates and enables
freebyte-web.service - Starts Uvicorn on
127.0.0.1:8005permanently via systemd
Useful systemd commands:
sudo systemctl status freebyte-web
sudo journalctl -u freebyte-web -f
sudo systemctl restart freebyte-web
Nginx upstream should be:
proxy_pass http://127.0.0.1:8005;
docker compose up --build
Startup order:
dbstarts (PostgreSQL)migraterunsalembic upgrade headwebstarts only after migration succeeds
No custom entrypoint script is used; each service runs its own explicit command in docker-compose.yml.
App URL:
docker compose down
docker compose down -v
If you change models, create and apply migration:
alembic revision --autogenerate -m "describe change"
alembic upgrade head