Skip to main content

Docker

Docker mode only deploys the SuiviBourse container. You should install and configure Prometheus and Grafana (or another tools if you want) by yourself to have the stack described in the Design section.

Requirements

  • Windows, Linux or macOS
  • Docker (> 19.03)

Supported architecture

  • amd64
  • arm64

If you want more supported architecture, please open a iussue on Github.

Steps

  1. Write a config.yaml (name can't be changed) following this page wherever you want

  2. Run the container (replace <config_file_path> with the config file path) :

docker run -p 8081:8081 -v <config_file_path>:/home/appuser/.config/SuiviBourse suivi-bourse-app

Environment variables

Env variables can be used to override some default parameters :

ENVDescriptionDefault Value
SB_SCRAPING_INTERVALInterval in seconds where app gets data from Yahoo! Finance API120
LOG_LEVELApp log levelINFO

Use the -e or --env flags to set environment variables in the container.

Example :

docker run -p 8081:8080 -v <config_file_path>:/home/appuser/.config/SuiviBourse -e SB_SCRAPING_INTERVAL=60 suivi-bourse-app