Docker
Docker mode deploys only the SuiviBourse container. You are responsible for providing an InfluxDB 3 instance (and, if you want dashboards, Grafana) to build the stack described in the Design section.
If you don't already run InfluxDB and Grafana, prefer the Docker Compose stack, which wires everything together for you.
Requirements
- Windows, Linux or macOS
- Docker (> 19.03)
- A reachable InfluxDB 3 Core instance and an API token
Supported architectures
amd64arm64
If you need another architecture, please open an issue on GitHub.
Steps
-
Write a
config.yaml(manual mode) or asettings.yaml+events/directory (events mode) following the configuration section. -
Run the container, mounting your configuration into
/home/appuser/.config/SuiviBourseand pointing it at your InfluxDB:
docker run -d \
-p 8081:8081 \
-v <config_path>:/home/appuser/.config/SuiviBourse \
-e INFLUXDB_HOST=http://my-influxdb:8181 \
-e INFLUXDB_TOKEN=<your-token> \
-e INFLUXDB_DATABASE=suivi_bourse \
ghcr.io/pbrissaud/suivi-bourse-app:latest
If you set up events mode in step 1, also pass -e SB_CONFIG_MODE=events
(it defaults to manual and would otherwise ignore your settings.yaml).
Port 8081 exposes the legacy Prometheus /metrics endpoint; you can omit the
-p flag if you don't use it.
Environment variables
Use the -e / --env flags to override defaults. The most common ones:
| Variable | Default | Description |
|---|---|---|
INFLUXDB_HOST | http://influxdb:8181 | InfluxDB 3 host URL |
INFLUXDB_TOKEN | (required) | InfluxDB API token |
INFLUXDB_DATABASE | suivi_bourse | InfluxDB database name |
SB_CONFIG_MODE | manual | Configuration mode (manual or events) |
SB_SCRAPING_INTERVAL | 120 | Price scraping interval (seconds) |
LOG_LEVEL | INFO | Logging level |
See the configuration overview for the complete list (ingestion, backfill and legacy Prometheus options).