Skip to content

Commit

Permalink
Merge pull request #408 from zeoses/master
Browse files Browse the repository at this point in the history
add run with docker compose
  • Loading branch information
danielqsj authored Nov 3, 2023
2 parents 44342df + 079320b commit b66d284
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Table of Contents
- [Run](#run)
- [Run Binary](#run-binary)
- [Run Docker Image](#run-docker-image)
- - [Run Docker Compose](#run-docker-compose)
- [Flags](#flags)
- [Notes](#notes)
- [Metrics](#metrics)
Expand Down Expand Up @@ -86,6 +87,21 @@ kafka_exporter --kafka.server=kafka:9092 [--kafka.server=another-server ...]
docker run -ti --rm -p 9308:9308 danielqsj/kafka-exporter --kafka.server=kafka:9092 [--kafka.server=another-server ...]
```

### Run Docker Compose
make a `docker-compose.yml` flie
```
services:
kafka-exporter:
image: danielqsj/kafka-exporter
command: ["--kafka.server=kafka:9092", "[--kafka.server=another-server ...]"]
ports:
- 9308:9308
```
then run it
```
docker-compose up -d
```

Flags
-----

Expand Down

0 comments on commit b66d284

Please sign in to comment.