Skip to main content
Version: v4

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.

tip

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

  • amd64
  • arm64

If you need another architecture, please open an issue on GitHub.

Steps

  1. Write a config.yaml (manual mode) or a settings.yaml + events/ directory (events mode) following the configuration section.

  2. Run the container, mounting your configuration into /home/appuser/.config/SuiviBourse and 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:

VariableDefaultDescription
INFLUXDB_HOSThttp://influxdb:8181InfluxDB 3 host URL
INFLUXDB_TOKEN(required)InfluxDB API token
INFLUXDB_DATABASEsuivi_bourseInfluxDB database name
SB_CONFIG_MODEmanualConfiguration mode (manual or events)
SB_SCRAPING_INTERVAL120Price scraping interval (seconds)
LOG_LEVELINFOLogging level

See the configuration overview for the complete list (ingestion, backfill and legacy Prometheus options).