Install without Docker
This page installs SuiviBourse from its source and runs it as a service. You get the same app as the Docker image: one process, one data directory.
What you need
| Tool | Version | Used for |
|---|---|---|
| uv | recent | Installs Python and the backend dependencies from the lockfile |
| Python | 3.15 or later | Runs the app. uv downloads it if your system does not have it. |
| Node.js | 26 | Builds the web interface, once per install or update |
| pnpm | the version the source names | Installs the web interface's dependencies |
Node.js and pnpm are only needed to build. The running app does not use them.
Install
-
Download the source archive of the latest release and extract it, for example into
/opt/suivi-bourse. -
Go to that directory:
cd /opt/suivi-bourse -
Install the backend from the lockfile, without the development tools:
uv sync --locked --no-dev -
Enable pnpm, which the source pins to an exact version:
npm install -g corepack@latest && corepack enable -
Build the web interface:
cd src/webpnpm install --frozen-lockfilepnpm buildcd ../..
If you skip the build, the app still starts, but the browser shows
No web UI bundle in this build instead of the interface.
Choose the data directory
SuiviBourse keeps everything in one directory, set by SB_STORE_DIR. The
default is /data, which suits the container. On a host, choose your own:
sudo mkdir -p /var/lib/suivi-bourse
sudo chown "$USER" /var/lib/suivi-bourse
The app creates its files inside: the database suivi-bourse.duckdb and its
.wal file, a logs folder, and an agent folder once you use the agent.
This directory holds your portfolio and secrets: the agent's provider key and the access-code data. Give it to one user only, and back it up. See Back up and update.
Run
From the source directory:
SB_STORE_DIR=/var/lib/suivi-bourse uv run --no-dev python -m application.boot
Open http://localhost:8080. The first launch asks a few questions. See First steps.
The app listens on every network interface of the host. Set SB_WEB_PORT to use
another port. The other variables are on Configuration.
Run one process per data directory. Two processes on the same directory would both collect prices and write to the same database.
Keep it running
On a host with systemd:
-
Find the absolute path of uv:
which uv -
Create
/etc/systemd/system/suivi-bourse.service. Replace the user and the path to uv with yours:/etc/systemd/system/suivi-bourse.service[Unit]Description=SuiviBourseAfter=network-online.targetWants=network-online.target[Service]Type=simpleUser=suiviWorkingDirectory=/opt/suivi-bourseEnvironment=SB_STORE_DIR=/var/lib/suivi-bourseEnvironment=PYTHONUNBUFFERED=1ExecStart=/usr/local/bin/uv run --no-dev python -m application.bootRestart=always[Install]WantedBy=multi-user.target -
Make sure that user owns the data directory:
sudo chown -R suivi /var/lib/suivi-bourse -
Start the service and enable it at boot:
sudo systemctl daemon-reloadsudo systemctl enable --now suivi-bourse -
Check that it answers:
curl -s http://localhost:8080/health
Read the logs with journalctl -u suivi-bourse -f. The app stops cleanly on
SIGTERM, which is what systemctl stop sends.
Update
- Stop the service:
sudo systemctl stop suivi-bourse. - Copy the data directory somewhere safe.
- Extract the new release over the old source, or into a new directory.
- Run the steps of Install again from step 2.
- Start the service:
sudo systemctl start suivi-bourse.
A build from source shows no version number in the app, and it does not check for new releases. Watch the releases page instead.
Supported platforms
SuiviBourse runs on any system and processor for which Python 3.15 and DuckDB publish packages, such as Linux and macOS. The systemd steps apply to Linux. On another system, run the same command with its own service manager.
The Docker image covers linux/amd64 and linux/arm64. See
Install with Docker.