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
-
Write a
config.yaml
(name can't be changed) following this page wherever you want -
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 :
ENV | Description | Default Value |
---|---|---|
SB_SCRAPING_INTERVAL | Interval in seconds where app gets data from Yahoo! Finance API | 120 |
LOG_LEVEL | App log level | INFO |
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