Skip to content

Commit

Permalink
Merge pull request #98 from idealista/develop
Browse files Browse the repository at this point in the history
Update README with custom config file for Docker image
  • Loading branch information
dortegau authored Sep 26, 2018
2 parents 795ed88 + 62e3067 commit d0b3973
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Other options to start the service are:
export APP_CONFIG_FILE=<config file path>
$ prom2teams
```
**Note:** Grouping alerts works since v2.2.0
**Note:** Grouping alerts works since v2.2.1

### Docker image

Expand All @@ -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/)
Expand Down

0 comments on commit d0b3973

Please sign in to comment.