forked from akvorado/akvorado
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: split monitoring out of docker-compose-grafana
And move kafka-ui to it.
- Loading branch information
1 parent
305a459
commit c630409
Showing
4 changed files
with
44 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
version: "3" | ||
volumes: | ||
akvorado-prometheus: | ||
services: | ||
prometheus: | ||
image: prom/prometheus:v2.47.2 | ||
restart: unless-stopped | ||
user: root # for access to /var/run/docker.sock | ||
volumes: | ||
- akvorado-prometheus:/prometheus | ||
- /var/run/docker.sock:/var/run/docker.sock:ro | ||
- ./prometheus.yml:/etc/prometheus/prometheus.yml | ||
command: | ||
# Those are the defaults | ||
- --config.file=/etc/prometheus/prometheus.yml | ||
- --storage.tsdb.path=/prometheus | ||
- --web.console.libraries=/usr/share/prometheus/console_libraries | ||
- --web.console.templates=/usr/share/prometheus/consoles | ||
# Those are not the defaults | ||
- --web.external-url=/prometheus | ||
labels: | ||
- traefik.enable=true | ||
- traefik.http.routers.prometheus.entrypoints=public | ||
- traefik.http.routers.prometheus.rule=PathPrefix(`/prometheus`) | ||
- traefik.http.services.prometheus.loadbalancer.server.port=9090 | ||
|
||
kafka-ui: | ||
image: provectuslabs/kafka-ui:v0.5.0 | ||
restart: unless-stopped | ||
depends_on: | ||
- kafka | ||
environment: | ||
- KAFKA_CLUSTERS_0_NAME=local | ||
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:9092 | ||
- SERVER_SERVLET_CONTEXT_PATH=/kafka-ui | ||
labels: | ||
- traefik.enable=true | ||
- traefik.http.routers.kafka-ui.entrypoints=private | ||
- traefik.http.routers.kafka-ui.rule=PathPrefix(`/kafka-ui`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters