Created
September 10, 2018 13:24
-
-
Save turbo/b8cae2d44f070d1952634c8300f88742 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
################## | |
# Services # | |
################## | |
services: | |
# Service: Telegraf | |
# Purpose: Data collection agent | |
# Documentation: https://docs.influxdata.com/telegraf | |
telegraf: | |
image: telegraf | |
networks: | |
- tick-net | |
ports: | |
- 6514:6514 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
configs: | |
- source: telegraf-config | |
target: /etc/telegraf/telegraf.conf | |
deploy: | |
mode: global | |
restart_policy: | |
condition: on-failure | |
# Service: InfluxDB | |
# Purpose: Time-series database | |
# Documentation: https://docs.influxdata.com/influxdb | |
influxdb: | |
image: influxdb | |
networks: | |
- tick-net | |
volumes: | |
- influxdb:/var/lib/influxdb | |
deploy: | |
<<: *manager | |
restart_policy: | |
condition: on-failure | |
# Service: Chronograf | |
# Purpose: InfluxDB frontend | |
# Documentation: https://docs.influxdata.com/chronograf | |
chronograf: | |
image: chronograf | |
environment: | |
INFLUXDB_URL: http://influxdb:8086 | |
KAPACITOR_URL: http://kapacitor:9092 | |
networks: | |
- tick-net | |
- traefik-net | |
volumes: | |
- chronograf:/var/lib/chronograf | |
<<: *influxlog | |
deploy: | |
<<: *manager | |
restart_policy: | |
condition: on-failure | |
labels: | |
- traefik.enable=true | |
- traefik.docker.network=traefik-net | |
- traefik.frontend.rule=Host:changeme.example.com | |
- traefik.port=8888 | |
- traefik.frontend.auth.basic=admin:$$apr1$$HrsJ7893$$xVc4Eky013Hf6QwDSmNrF1 | |
# Service: Kapacitor | |
# Purpose: ETL and alerting for InfluxDB | |
# Documentation: https://docs.influxdata.com/kapacitor | |
kapacitor: | |
image: kapacitor | |
environment: | |
KAPACITOR_HOSTNAME: kapacitor | |
KAPACITOR_INFLUXDB_0_URLS_0: http://influxdb:8086 | |
networks: | |
- tick-net | |
volumes: | |
- kapacitor:/var/lib/kapacitor | |
<<: *influxlog | |
configs: | |
- source: kapacitor-config | |
target: /etc/kapacitor/kapacitor.conf | |
deploy: | |
<<: *manager | |
restart_policy: | |
condition: on-failure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment