Skip to content

Commit

Permalink
task: add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cngJo committed Aug 2, 2022
1 parent cf66f27 commit b9d95fa
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ http://127.0.0.1:9101/probe?mailbox=INBOX
probe_mailbox_count 0
```

### Example Usage

You can find a example docker compose configuration.

Make sure to update `examples/imap-exporter.env` with your imap credentials.

**Start the example container**

```shell
pushd examples

docker compose pull
docker compose up -d
```

## License

This project is licensed under the [MIT License](./LICENCE)
Expand Down
10 changes: 10 additions & 0 deletions examples/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "3"

services:

imap-exporter:
image: "ghcr.io/jop-software/imap-mailbox-exporter:latest"
env_file:
- "imap-exporter.env"
ports:
- "9101:9101"
3 changes: 3 additions & 0 deletions examples/imap-exporter.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
IMAP_SERVER=""
IMAP_USERNAME=""
IMAP_PASSWORD=""

0 comments on commit b9d95fa

Please sign in to comment.