Created
June 27, 2021 11:41
-
-
Save markusbuchholz/4561af2e755555706c87af6abb7ee8fe to your computer and use it in GitHub Desktop.
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
version: '3' | |
services: | |
# Define an InfluxDB service | |
influxdb: | |
image: influxdb:1.3.5 | |
volumes: | |
- ./data/influxdb:/var/lib/influxdb | |
ports: | |
- "8086:8086" | |
# Define a Chronograf service | |
chronograf: | |
image: chronograf:1.3.8 | |
environment: | |
INFLUXDB_URL: http://influxdb:8086 | |
KAPACITOR_URL: http://kapacitor:9092 | |
ports: | |
- "8888:8888" | |
links: | |
- influxdb | |
- kapacitor | |
# Define a Kapacitor service | |
kapacitor: | |
image: kapacitor:1.3.3 | |
environment: | |
KAPACITOR_HOSTNAME: kapacitor | |
KAPACITOR_INFLUXDB_0_URLS_0: http://influxdb:8086 | |
links: | |
- influxdb | |
ports: | |
- "9092:9092" | |
# Define a service for using the influx CLI tool. | |
# docker-compose run influxdb-cli | |
influxdb-cli: | |
image: influxdb:1.3.5 | |
entrypoint: | |
- influx | |
- -host | |
- influxdb | |
links: | |
- influxdb | |
# Define a service for using the kapacitor CLI tool. | |
# docker-compose run kapacitor-cli | |
kapacitor-cli: | |
image: kapacitor:1.3.3 | |
entrypoint: bash | |
environment: | |
KAPACITOR_URL: http://kapacitor:9092 | |
links: | |
- kapacitor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment