From 62e306775c32fe6a1c8973511ef56cf5c4ca6944 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 26 Sep 2018 13:41:17 +0200 Subject: [PATCH] Update README with custom config file for Docker image --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 204779c..8f3acfc 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ Other options to start the service are: export APP_CONFIG_FILE= $ prom2teams ``` -**Note:** Grouping alerts works since v2.2.0 +**Note:** Grouping alerts works since v2.2.1 ### Docker image @@ -74,6 +74,14 @@ So a sample Docker run command would be: $ docker run -it -d -e PROM2TEAMS_GROUP_ALERTS_BY=FIELD_YOU_WANT_TO_GROUP_BY -e PROM2TEAMS_CONNECTOR="CONNECTOR_URL" -p 8089:8089 idealista/prom2teams:VERSION ``` +#### Provide custom config file + +If you prefer to use your own config file, you just need to provide it as a Docker volume to the container and map it to `/opt/prom2teams/config.ini`. Sample: + +```bash +$ docker run -it -d -v pathToTheLocalConfigFile:/opt/prom2teams/config.ini -p 8089:8089 idealista/prom2teams:VERSION +``` + ### Production For production environments you should prefer using a WSGI server. [uWSGI](https://uwsgi-docs.readthedocs.io/en/latest/)